[cig-commits] [commit] inversion, master, validate_MT_params: Remove __name__==__main block (8057e7c)
cig_noreply at geodynamics.org
cig_noreply at geodynamics.org
Fri Dec 12 18:28:50 PST 2014
Repository : https://github.com/geodynamics/burnman
On branches: inversion,master,validate_MT_params
Link : https://github.com/geodynamics/burnman/compare/80c2a295c42dfdb38f83f6c1334bf7d8f97a8463...409647ff05dfad6a686198cac1481bd46b5e2e62
>---------------------------------------------------------------
commit 8057e7cdfae7588813f98a520895f362bc231fe8
Author: ian-r-rose <ian.r.rose at gmail.com>
Date: Fri Dec 12 13:50:49 2014 -0800
Remove __name__==__main block
>---------------------------------------------------------------
8057e7cdfae7588813f98a520895f362bc231fe8
burnman/eos/einstein.py | 21 ---------------------
1 file changed, 21 deletions(-)
diff --git a/burnman/eos/einstein.py b/burnman/eos/einstein.py
index 0d059fd..9609fa0 100644
--- a/burnman/eos/einstein.py
+++ b/burnman/eos/einstein.py
@@ -36,24 +36,3 @@ def heat_capacity_v(T,einstein_T,n):
-
-if __name__ == "__main__":
-
- import matplotlib.pyplot as plt
-
- temperatures = np.linspace(0,5000, 200)
- vibrational_energy = np.empty_like(temperatures)
- heat_capacity = np.empty_like(temperatures)
- Einstein_T = 1000.
- for i in range(len(temperatures)):
- vibrational_energy[i] = thermal_energy(temperatures[i], Einstein_T, 1.0)
- heat_capacity[i] = heat_capacity_v(temperatures[i], Einstein_T, 1.0)
-
- plt.subplot(121)
- plt.plot(temperatures, vibrational_energy)
- plt.subplot(122)
- plt.plot(temperatures, heat_capacity)
- plt.show()
-
-
-
More information about the CIG-COMMITS
mailing list