Changeset 71 for trunk/examples/app-fermi/python/fermi.py
- Timestamp:
- Sep 27, 2005, 9:49:42 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/examples/app-fermi/python/fermi.py
r66 r71 10 10 # ====================================================================== 11 11 import Rappture 12 import Rappture.Units 12 13 import sys 13 14 from math import * … … 17 18 18 19 Tstr = driver.get('input.(temperature).current') 19 T = Rappture.Units.convert(Tstr, to= K, units=off)20 T = Rappture.Units.convert(Tstr, to="K", units="off") 20 21 21 22 Efstr = driver.get('input.(Ef).current') 22 Ef = Rappture.Units.convert(Efstr, to= eV, units=off)23 Ef = Rappture.Units.convert(Efstr, to="eV", units="off") 23 24 24 25 kT = 8.61734e-5 * T
Note: See TracChangeset
for help on using the changeset viewer.