Repository navigation
0.56.0
Release notes for sbmlsim 0.56.0
The planning of simulations and scans moves into sbmlsim-core 0.45.0 (#723): the planner of sbmlsim-core (sbmlsim_core.scan) runs the scans of the engine core and compiles the plans of every engine, and the python plan compiler and the python run path of the scans of the engine core are deleted. The results are those of 0.55.0: the requests of the engine and the plans equal bitwise the frozen records of the python path they replace.
Changes
- The scans of the engine core run in sbmlsim-core (#723).
Simulator(engine="core").runhands the scan with its observables to the planner as one requestscan/1(sbmlsim.simulator.scan_core), which plans the requests of the engine, folds the formulas at the changes, evaluates theFormulaandPKobservables and interpolates onto the grid; aCustomobservable is still a function of python, which the planner asks for. The answer is theScanResultof every engine (sbmlsim.result.from_core). - The plans of every engine come from sbmlsim-core (#723). roadrunner, COPASI, AMICI and the fit run the plans sbmlsim-core compiles (
sbmlsim.simulator.plans,Plan.from_dict), so the units and the kinds of the targets of a plan are the ones of the engine core for every engine. - The changes of the models of a run (#723). The changes of the model of a run and of the models of a dimension are fields of
scan/1(plans.changes_of_models), defaults of the pre-initialization of every simulation. A model with changes in a dimension of models no longer fails withTypeError: No JSON type for Quantityon every engine.
Removed
- The python plan compiler (#723):
compile_simulation,target_values,model_timeand their helpers ofsbmlsim.simulator.plan, and the compile loop ofSimulator. The plan dataclasses withwith_values,scaled,until,placesandassigned, andmerge_times, stay for the reference engines and the fit. - The python run path of the scans of the engine core (#723): the batched chunks of the worker, the threads of a chunk and the core branch of
engines.check_plan.
Behaviour changes
- A model which sbmlsim-core refuses is refused by every engine (#723). Since the plans of every engine are compiled by sbmlsim-core, roadrunner, COPASI and AMICI refuse a model the compiler of sbmlsim-core refuses, e.g. a draw of a distribution of
distribin a math, a fast reaction or a package the model requires, with anUnsupportedModelErrorwhich names the engine, the model and the reason of the compiler. See the section Engines of Simulations. - The messages of a plan are the planner's (#723), e.g. a value whose unit cannot be converted into the unit of its target: "The value '25.0 millimolar' of 'PODOSE_hctz' cannot be converted into the unit 'mg' of the model: cannot convert 'millimolar' ([substance] / [length] ** 3) to 'mg' ([mass])".
Dependencies
sbmlsim-core>=0.45.0(#723): the planner of the scans and the plans of every engine.