Main content

Home

Menu

Loading wiki pages...

View
Wiki Version:
This [script](https://osf.io/pfkyr) prints out properties in zones in a Webnucleo XML file. To use, first download the file by typing **curl -o print_zone_properties.py -J -L https://osf.io/pfkyr/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 out selected properties in zones: **python print_zone_properties.py out.xml --properties time t9 rho "(flow current, h1 + b11 -> c12 + gamma)" "(flow current, h1 + c12 -> n13 + gamma)"** Use the *zone_xpath* option to select out zones. For example, print the properties in the last ten zones: **python print_zone_properties.py out.xml --properties time t9 rho "(flow current, h1 + b11 -> c12 + gamma)" "(flow current, h1 + c12 -> n13 + gamma)" --zone_xpath "[position() > last() - 10]"**
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.