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 warnings about missing files of model during visualisation #315

Open lej0hn opened 3 months ago

lej0hn commented 3 months ago

When visualising a model, it is possible to produce an incorrect visualisation while not all model files are present without any relevant warning or error.

Describe the solution you'd like Add warning in the output logs of the visualisation in case of missing files. Maybe the files could be validated before the visualisation process and some corresponding warnings could be produced.

lej0hn commented 3 months ago

Upon reading a neuroml file there is a boolean includes_include that when True, the included files are validated and if there is a missing file a critical log occurs and the process exits. Would it be a good solution to let the validation happen always, but then, it can be decided with another boolean to whether exit the process or just log a warning for the missing file upon finding one?