AnabelSMRuggiero / sbmltoodepy

A tool for creating Python implementations of SBML models.
BSD 3-Clause "New" or "Revised" License
13 stars 4 forks source link

AssertionError #6

Open InsKeerg opened 2 years ago

InsKeerg commented 2 years ago

Hello to every one,

I am trying to run a simple example using sbmltoodepy and I am receiving the following error.

Traceback (most recent call last): File "C:\Users\AppData\Roaming\JetBrains\PyCharm2021.2\scratches\scratch_79.py", line 8, in ParseAndCreateModel(inputFilePath)#, jsonFilePath=None, outputFilePath=None)#, className="SBMLmodel") File "C:\Users\AppData\Roaming\Python\Python39\site-packages\sbmltoodepy\utilities.py", line 66, in ParseAndCreateModel modelData = ParseSBMLFile(inputFilePath) File "C:\Users\AppData\Roaming\Python\Python39\site-packages\sbmltoodepy\parse.py", line 284, in ParseSBMLFile assert(doc.getNumErrors() == 0) AssertionError

The input file that I use, is the one that is stored here, inputFilePath = "E:/Borisov2009_insulin_EGF.xml"

Here is also the code that I used.

import sbmltoodepy from sbmltoodepy import ParseAndCreateModel

inputFilePath = "E:/Borisov2009_insulin_EGF.xml"

ParseAndCreateModel(inputFilePath, jsonFilePath=None, outputFilePath=None, className="SBMLmodel")

model = sbmltoodepy.SBMLmodel() model.RunSimulation(1, absoluteTolerance = 1e-12, relativeTolerance = 1e-6)

Thank you in advance for your time.