This [script](https://osf.io/uhzvf) computes the difference in integrated currents between two zones in a Webnucleo XML file.
To use, first download the file by typing
**curl -o diff_zone_currents.py -J -L https://osf.io/uhzvf/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 create an output XML file containing the current differences.
**python diff_zone_currents.py out.xml "[@label1 = 20]" "[last()]" diff.xml**
You can use the output file *diff.xml* to print creation and destruction currents or plot the currents over the interval between the two zones.