Skip to content

Commit

Permalink
Warn on IA conversion failure.
Browse files Browse the repository at this point in the history
  • Loading branch information
luciansmith committed Oct 18, 2024
1 parent 74e4f2e commit c8e1a79
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions biosimulators_pysces/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,8 @@ def preprocess_sed_task(task, variables, config=None):
ia_conv = libsbml.SBMLInitialAssignmentConverter()
ia_conv.setDocument(sbml_doc)
success = ia_conv.convert()
if success != 0:
warn("Initial assignment conversion failed: any initial assignments in this model will remain, which PySCeS may not be able to handle.")
libsbml.writeSBMLToFile(sbml_doc, sbml_converted_filename)

pysces_model_file, pysces_model_filename = tempfile.mkstemp(suffix='.psc')
Expand Down

0 comments on commit c8e1a79

Please sign in to comment.