Ignore:
Timestamp:
Sep 27, 2005, 9:49:42 AM (19 years ago)
Author:
mmc
Message:

Partial fixes to get Rappture.Units working in python.
The module loads now, but it dumps core.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/examples/app-fermi/python/fermi.py

    r66 r71  
    1010# ======================================================================
    1111import Rappture
     12import Rappture.Units
    1213import sys
    1314from math import *
     
    1718
    1819Tstr = driver.get('input.(temperature).current')
    19 T = Rappture.Units.convert(Tstr, to=K, units=off)
     20T = Rappture.Units.convert(Tstr, to="K", units="off")
    2021
    2122Efstr = driver.get('input.(Ef).current')
    22 Ef = Rappture.Units.convert(Efstr, to=eV, units=off)
     23Ef = Rappture.Units.convert(Efstr, to="eV", units="off")
    2324
    2425kT = 8.61734e-5 * T
Note: See TracChangeset for help on using the changeset viewer.