Main content

Home

Menu

Loading wiki pages...

View
Wiki Version:
This [script](https://osf.io/mrf5v) prints reaction timescales from data in a Webnucleo XML file. To use, first download the file by typing **curl -o reac_timescale.py -J -L https://osf.io/mrf5v/download** Use the script on an output Webnucleo XML file (in this example, called *out.xml*). This will be an output from a Webnucleo network calculation, but, to obtain an [example](https://osf.io/zhrfn/), type **curl -o out.xml -J -L https://osf.io/ytud2/download** Then print the reaction timescales from *out.xml* for reactions (in this example, the *(p, γ)* reaction on o16) in particular zones (in this example, all zones after and including zone 9 since the first zone is zone 0) by typing **python reac_timescale.py out.xml --reac_xpath "[reactant = 'h1' and reactant = 'o16' and product = 'gamma']" --zone_xpath "[position() >= 10]"** For each zone printed out, the output will be each reaction matched by the reaction XPath (if the flows are non-zero), the flows, and the timescale and net timescale for the given species to be destroyed by the reaction. A negative timescale means the reaction is tending to make the species.
OSF does not support the use of Internet Explorer. For optimal performance, please switch to another browser.
Accept
This website relies on cookies to help provide a better user experience. By clicking Accept or continuing to use the site, you agree. For more information, see our Privacy Policy and information on cookie use.
Accept
×

Start managing your projects on the OSF today.

Free and easy to use, the Open Science Framework supports the entire research lifecycle: planning, execution, reporting, archiving, and discovery.