-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SBML File Import error #164
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
I received the following error when trying to import an sbml file of level 2, version 4.
TypeError Traceback (most recent call last)
~\AppData\Local\Temp/ipykernel_29976/3388929290.py in
1 from bioscrape.types import Model
----> 2 M = Model(sbml_filename = "pone_0161260_s012.xml")
bioscrape\types.pyx in bioscrape.types.Model.init()
~\anaconda3\envs\e164\lib\site-packages\bioscrape\sbmlutil.py in import_sbml(sbml_file, bioscrape_model, input_printout, **kwargs)
50 allparams = import_sbml_parameters(model)
51 allreactions, allspecies = import_sbml_reactions(model, allspecies, allparams, input_printout)
---> 52 allrules, allreactions = import_sbml_rules(model, allspecies, allparams, allreactions, input_printout)
53 # Check and warn if there are any unrecognized components (function definitions, packages, etc.)
54 if len(model.getListOfCompartments()) > 0 or len(model.getListOfUnitDefinitions()) > 0 or len(model.getListOfEvents()) > 0:
~\anaconda3\envs\e164\lib\site-packages\bioscrape\sbmlutil.py in import_sbml_rules(sbml_model, allspecies, allparams, allreactions, input_printout)
337 rule_string = rulevariable + '=' + rule_formula
338 elif rulevariable in allparams:
--> 339 rule_string = rulevariable + '=' + rule_formula
340 else:
341 warnings.warn('SBML: Attempting to assign something that is not a parameter or species %s'
TypeError: can only concatenate str (not "NoneType") to str
Thanks!
The text was updated successfully, but these errors were encountered: