SBRG / MASSpy

https://masspy.readthedocs.io
MIT License
22 stars 6 forks source link

MASSpy is considerably slower with libRoadRunner 2.2.0 (which requires numpy 1.22) #167

Open jonrkarr opened 2 years ago

jonrkarr commented 2 years ago

The following example is much slower with 2.2.0 than 2.1.3 (the previous version)

import mass
model_source = 'WholeCellRBC_MA_Rates.xml'
mass_model = mass.io.sbml.read_sbml_model(model_source)
mass_sim = mass.Simulation(reference_model=mass_model)
mass_sim.roadrunner.setIntegrator('cvode')
time = (0, 1000, 1000)
met_concs, rxn_fluxes = mass_sim.simulate(mass_model, time=time)

Model: https://raw.githubusercontent.com/biosimulators/Biosimulators_test_suite/6e5fd159fa937a269d045d8e19c645763e2d05dd/examples/mass/Bordbar-Cell-Syst-2015-RBC-metabolism/WholeCellRBC_MA_Rates.xml

We work around this by requiring