NeuroML / pyNeuroML

A single package in Python unifying scripts and modules for reading, writing, simulating and analysing NeuroML2/LEMS models.
https://docs.neuroml.org/Userdocs/Software/pyNeuroML.html
GNU Lesser General Public License v3.0
34 stars 30 forks source link

Add option to validate SBML #250

Closed pgleeson closed 8 months ago

pgleeson commented 11 months ago

e.g. pynml -validate-sbml MyModel.sbml

Will probably involve a call to libsbml, e.g. see under 3) here: https://github.com/combine-org/combine-notebooks/blob/main/notebooks/sbml.ipynb

Command line option could be added like this: https://github.com/NeuroML/pyNeuroML/blob/3af5ab2e7bc25d2de2282b246ef9610efa4d8130/pyneuroml/pynml.py#L325-L329

probably calling a dedicated method in a new module sbml under: https://github.com/NeuroML/pyNeuroML/tree/master/pyneuroml

FYI @robertvi

robertvi commented 8 months ago

I've created a fork to work on this, starting from the development branch: https://github.com/robertvi/pyNeuroML/tree/development

robertvi commented 8 months ago

https://github.com/NeuroML/pyNeuroML/pull/266 created a draft pull request

pgleeson commented 8 months ago

Done