Open pgleeson opened 5 years ago
Let me know if you've any questions @tuigimdochas
Note: source of Python summary is in here: https://raw.githubusercontent.com/NeuralEnsemble/libNeuroML/development/neuroml/nml/nml.py (summary() method).
There's also a similar method in Java here: https://github.com/NeuroML/org.neuroml.model/blob/development/src/main/java/org/neuroml/model/util/NeuroMLConverter.java#L309
There is a utility in pyNeuroML which can print the summary info in a NeuroML file, e.g. this file https://github.com/NeuralEnsemble/libNeuroML/blob/development/neuroml/examples/test_files/simplenet.nml with:
prints:
It would be useful if there was a similar executable cnml-summary which gets created when the NeuroML_API is installed (with sudo make install).
Ideally this will be faster than the Python version for large files... An initial parsing of the XML file can be seen here: https://github.com/NeuroML/NeuroML_API/blob/master/test/example.cxx#L21