Skip to content

0.57.0

Latest

Choose a tag to compare

@github-actions github-actions released this 29 Nov 03:47
· 1 commit to develop since this release
05269c1

Release notes for sbmlsim 0.57.0

sbmlsim

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, population and 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, fast and morris gave 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-core for 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_unit and 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 of sbmlsim.sensitivity.chaos keeps 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_units gives the units of the outputs of a run without running it; sbmlsim.sensitivity.classification.classify and classification_symbols give the classes of the IPCS and their symbols of an array of values; sbmlsim.engine.core_module imports a module of the bindings of sbmlsim-core, the one way of the package to them.
  • SBMLIds and sbml_ids. SBMLIds moved to sbmlsim.model.model_sbml (re-exported by sbmlsim.model), and sbml_ids() is a method of every SBMLModel, 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_cube gives an array of floats, a row per point and a column per target.
  • supported of the chaos expansion. sbmlsim.sensitivity.chaos.supported is 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, population or 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 random and lhs. A record of random or lhs without generator, 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. time is 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 analysis uncertainty of 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_band and 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 pce may 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_values and RANK_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 the NaN of the draws, so an infinite draw, -inf in particular, shifted the order statistics and gave wrong quantiles with a RuntimeWarning; 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_outputs of a project without declared factory_outputs compares 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 kind factory; 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_share reads 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.