We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
write_sbml
1 parent 876c781 commit 75c9a9eCopy full SHA for 75c9a9e
1 file changed
petab/v1/sbml.py
@@ -169,6 +169,7 @@ def write_sbml(sbml_doc: libsbml.SBMLDocument, filename: Path | str) -> None:
169
sbml_doc: SBML document containing the SBML model
170
filename: Destination file name
171
"""
172
+ Path(filename).parent.mkdir(parents=True, exist_ok=True)
173
sbml_writer = libsbml.SBMLWriter()
174
ret = sbml_writer.writeSBMLToFile(sbml_doc, str(filename))
175
if not ret:
0 commit comments