I would like to know if there is a way to save and load NeuroML file using python and not the GUI.
Is somewhere on the Programmer's Reference?
Proposed API would be something like:
Code: Select all
h.save_to_NeuroML('filename.xml', level=1) # For saving. Level keyword to choose the NeuroML level
h.load_NeuroML('filename.xml')
Saving:
Code: Select all
from neuron import h
soma = h.Section()
h.save_to_NeuroML('filename.xml', level=1)
Code: Select all
from neuron import h
h.load_NeuroML('filename.xml')
print h.soma.diam