Main content

Home

Menu

Loading wiki pages...

View
Wiki Version:
This [script](https://osf.io/reaw4) removes duplicate valid reactions in a Webnucleo network file. The default is to remove endothermic versions of the reaction. The user may modify the routine to remove duplicate reactions via other criteria. To use, first download the file by typing **curl -o remove_duplicate_reactions.py -J -L https://osf.io/reaw4/download** Use the script on a Webnucleo network XML file (in this example, called *net_full.xml*). This will be a network (nuclides plus reactions) XML file. Any such XML file will do, but to obtain an [example](https://osf.io/9xmz5/), type **curl -o net_full.xml -J -L https://osf.io/9xmz5/download** Remove the duplicate valid reactions and dump the data to a new network file called *new_net.xml*:: **python remove_duplicate_reactions.py net_full.xml new_net.xml** To print out the removed reactions, add the option *--print_removed*:: **python remove_duplicate_reactions.py net_full.xml new_net.xml --print_removed True**
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.