Repository navigation
Release notes for sbmlsim 0.57.0
The sampling, the sensitivity analysis and the propagation of uncertainty run in sbmlsim-core: the distributions and their distrib formulas, the domains of a model, the designs of a scan and the references of their targets, the local index, the polynomial chaos expansion, the classification of the IPCS, the propagation with its Monte Carlo errors and probability statements and the moments of an uncertain value are the Rust of sbmlsim-core, natively and in WebAssembly, with the values and the messages of sbmlsim.
Changes
- The references of a design come from the engine core. The values the targets of a design have after the pre-initialization (
sbmlsim.simulation.sampling.references) are simulated by the engine core whatever the engine of the model, with no roadrunner, so the draws of a design are the same for every engine; the unit of a reference is the one sbmlsim-core reads of the model. - The generators of sbmlsim-core.
random,lhs,populationand the designs derived from a fit (fit_parameters,profile_parameters,posterior_parameters) draw from the streams of sbmlsim-core, so a seed gives the same points natively and in WebAssembly;sobol,fastandmorrisgave the points of sbmlsim-core already and keep them to the bit. Design.generator. The record of a design names the generator of its draws,sbmlsim-corefor a design of this release, and reads back without it.- The units of the host in every request of the sampling. A unit of
define_unitand a named unit of a model (a unit whose factor is no prefix) reach every request of the sampling, the designs, the distributions, the references and the propagation (sbmlsim.units.host_units), so a bound or a reference in such a unit converts as with pint. PolynomialChaos.indices. A fit ofsbmlsim.sensitivity.chaoskeeps the indices and the moments of the fit of sbmlsim-core, from which the first order, total order and second order indices, the mean and the variance are read.- New functions.
Simulator.output_unitsgives the units of the outputs of a run without running it;sbmlsim.sensitivity.classification.classifyandclassification_symbolsgive the classes of the IPCS and their symbols of an array of values;sbmlsim.engine.core_moduleimports a module of the bindings of sbmlsim-core, the one way of the package to them. SBMLIdsandsbml_ids.SBMLIdsmoved tosbmlsim.model.model_sbml(re-exported bysbmlsim.model), andsbml_ids()is a method of everySBMLModel, read from the SBML of the model without the added parameters, the same for every engine.- The unit cube of a record is an array.
sbmlsim.simulation.sampling.designs.unit_cubegives an array of floats, a row per point and a column per target. supportedof the chaos expansion.sbmlsim.sensitivity.chaos.supportedis the rule of the candidate degrees of sbmlsim-core (sbmlsim_core.chaos.supported).
Behaviour changes
- Other points for a seed. A design of
random,lhs,populationor one derived from a fit gives other points for a seed than sbmlsim 0.56, whose draws came from numpy and scipy. - Old records of
randomandlhs. A record ofrandomorlhswithoutgenerator, written by sbmlsim 0.56 or earlier, is refused where its unit cube must be created again (a sensitivity analysis of such a result), with a message naming sbmlsim 0.56 as the version to read it with; the values of such a result stay readable. references(model, ["time"])raises.timeis no target of a model and is refused with "'time' is no target of the model.", where sbmlsim 0.56 gave 0.- A propagation simulates its references when it is created.
Propagation.__init__loads the model and simulates the references of its relative distributions, and opens the driver of sbmlsim-core twice, once to check the request before the model is loaded and once with the references; the planning of an analysisuncertaintyof the run layer, which creates the propagation, simulates them as well. A propagation refuses draws of the driver which do not continue the ones it asked for before. - The messages of units. A unit of a distribution, a reference or a bound which does not convert is refused with the message of sbmlsim-core.
- Infinite draws in a band. An infinite value of a draw is left out of the quantiles of a band,
point_bandand the bands of a figure, as a failed draw is. - The leave-one-out error of one element. The corrected leave-one-out error of an observable of a single element of
pcemay differ from sbmlsim 0.56 in its last bits, the QR of sbmlsim-core in place of the one of LAPACK.
Removed
sbmlsim.sensitivity.chaos.legendre_valuesandRANK_TOLERANCE: the basis and the least squares of the expansion are the ones of sbmlsim-core.
Fixes
- The quantiles of a band with an infinite draw.
sbmlsim.plot.points.nan_quantiles, the quantiles of the bands of a figure, left out only theNaNof the draws, so an infinite draw,-infin particular, shifted the order statistics and gave wrong quantiles with aRuntimeWarning; it is left out as a failed draw, the quantiles of finite draws bitwise as before. - A rebuild compares only the files git tracks (#730).
Project.compared_outputsof a project without declaredfactory_outputscompares the written files git tracks under the root of the project, so an ignored leftover of an earlier run of the factory (an old COMBINE archive) no longer fails the rebuild check of the credibility and the kindfactory; outside a git checkout every file of the package is compared as before. - A share of the CPUs keeps the counts it was computed from (#731, #732).
parallel.worker_sharereads every counter of the pool once and returns the share with the counts it was computed from, which a test of the share of a worker read twice.
Dependencies
sbmlsim-core>=0.46.0: the sampling, the sensitivity analysis, the chaos fit and the propagation of uncertainty.