[cig-commits] [commit] master: Remove __name__==__main block (8057e7c)
cig_noreply at geodynamics.org
cig_noreply at geodynamics.org
Fri Dec 12 15:48:39 PST 2014
Repository : https://github.com/geodynamics/burnman
On branch : master
Link : https://github.com/geodynamics/burnman/compare/e7f78ff83a8092bc07fea4398232e73406e7cbbb...6111717707e0bd07c31d999c20c7a56db163ff48
>---------------------------------------------------------------
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