Ignore:
Timestamp:
Sep 9, 2005 10:03:21 AM (16 years ago)
Author:
dkearney
Message:

python/Rappture/number.py

  • added ability for number to choose between default and current tags
  • changed structure of init so the basePath and the id are separate arguments to keep compatibility with how the driver program expects a number xml structure

python/Rappture/interface.py

  • included a more complete xml structure including tool and command i structures, for writing the xml to the file when the -g option is used
  • adjusted the finish() function to utilize the new Rappture.result() function

examples/app-fermi/fermi_io.py

  • adjusted the Rappture.number() fxn call to split the path and id.
  • commented out the result = [] because we now write the result to xml

examples/app-fermi/fermi.py

  • added output section with curve xml details for writing to xml
  • directly write the results to xml instead of to a result[] array

gui/apps/rerun

  • added script to re-visualize output from previously created run.xml file
File:
1 edited

Legend:

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

    r10 r55  
    2626E = Emin; dE = 0.005*(Emax-Emin)
    2727
     28Rappture.driver.put("output.curve(f12).about.label", "Fermi-Dirac Factor")
     29Rappture.driver.put("output.curve(f12).xaxis.label", "Energy")
     30Rappture.driver.put("output.curve(f12).xaxis.units", "eV")
     31path = "output.curve(f12).component.xy"
     32
    2833while E < Emax:
    2934    f = 1.0/(1.0 + exp((E - Ef)/kT))
    30     result.append( [E,f] )
     35    # result.append( [E,f] )
     36    value = "%s  %s\n" % (f,E)
     37    Rappture.driver.put(path,value,append=1)
    3138    E += dE
     39
Note: See TracChangeset for help on using the changeset viewer.