Skip to content

Commit 3463600

Browse files
committed
feat(archive-sedml): validate generated sedml
1 parent 48092c2 commit 3463600

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pyneuroml/archive/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
from pyneuroml.utils import get_model_file_list
1818
from pyneuroml.utils.cli import build_namespace
1919
from pyneuroml.runners import run_jneuroml
20+
from pyneuroml.sedml import validate_sedml_files
2021

2122
logger = logging.getLogger(__name__)
2223
logger.setLevel(logging.INFO)
@@ -100,6 +101,9 @@ def cli(a: typing.Optional[typing.Any] = None, **kwargs: str):
100101
rootfile = a.rootfile.replace(".xml", ".sedml")
101102
zipfile_extension = ".omex"
102103

104+
# validate the generated file
105+
validate_sedml_files([rootfile])
106+
103107
# if explicitly given, use that
104108
if a.zipfile_extension is not None:
105109
zipfile_extension = a.zipfile_extension

0 commit comments

Comments
 (0)