MASSpy icon indicating copy to clipboard operation
MASSpy copied to clipboard

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

Open jonrkarr opened this issue 2 years ago • 0 comments

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

  • libroadrunner<2.2.0
  • numpy<1.22

jonrkarr avatar Feb 23 '22 16:02 jonrkarr