Skip to content

Commit

Permalink
Fixes issue #123 : sbml_warnings keyword error (#134)
Browse files Browse the repository at this point in the history
* fix sbml_warning issue with load reaction
  • Loading branch information
ayush9pandey authored Sep 20, 2022
1 parent 4ee867e commit e06b95a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bioscrape/sbmlutil.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def import_sbml(sbml_file, bioscrape_model = None, input_printout = False, **kwa
# Parse through model components one by one
allspecies = import_sbml_species(model)
allparams = import_sbml_parameters(model)
allreactions, allspecies = import_sbml_reactions(model, allspecies, allparams, input_printout)
allreactions, allspecies = import_sbml_reactions(model, allspecies, allparams, input_printout, sbml_warnings)
allrules, allreactions = import_sbml_rules(model, allspecies, allparams, allreactions, input_printout)
# Check and warn if there are any unrecognized components (function definitions, packages, etc.)
if len(model.getListOfCompartments()) > 0 or len(model.getListOfUnitDefinitions()) > 0 or len(model.getListOfEvents()) > 0:
Expand Down Expand Up @@ -135,7 +135,7 @@ def import_sbml_parameters(sbml_model):
allparams[pid] = p.getValue()
return allparams

def import_sbml_reactions(sbml_model, allspecies, allparams, input_printout):
def import_sbml_reactions(sbml_model, allspecies, allparams, input_printout, sbml_warnings = True):
"""Import reactions from SBML model
Args:
Expand Down

0 comments on commit e06b95a

Please sign in to comment.