Release notes for sbmlsim 0.59.8
A patch release of the fit in sbmlsim-core: a fit has no wall clock deadline, a deadline which fires names itself, a fit none of whose runs reached a finite cost fails loudly, and a count per row is warned of only where its smallest value is the weight of a mapping.
Fit
- A fit runs on the runtime of the simulations (#780). sbmlsim built the problem of a fit without a runtime, so sbmlsim-core loaded the models of the fit into a
Runtime()of its own, whose wall clock deadline is 30 s: a fit of a large model (919 states, one core) ran 23 min, its single run failed withwasm trap: interruptand an infinite cost, and the command exited 0. Every problem of a fit, the problem of its evaluations, the problem its runs run on and the problems of its analyses (profiles, Fisher information, posterior, predictive check, metrics), is now built with the runtime of the simulations of the process, which has no deadline unlessSBMLSIM_CORE_TIMEOUT_MSgives one (#581). - A deadline of
SBMLSIM_CORE_TIMEOUT_MSwhich fires in a fit names the deadline, its length and what to do, as in a simulation, instead of the trap of the engine: at the start of a fit, in a call of its problem (aRuntimeError) and in the message of a failed run, and so does a point of a scan. - A failed fit fails loudly.
OptimizationResult.failed_runs,failedandfailure_message; the JSON of a result with a failed run lists the failed runs with their messages underfailed_runs(a result without one writes the file of 0.59.7).run_optimizationlogs a warning with the count and the messages of the failed runs, and an error naming the failures for a fit none of whose runs reached a finite cost. Such a fit makesfit_cliwriteoptimization_result.jsonand its TSV next to its runs instead of a report and exit with 3, and the kindfitof the run layer write its records and fail with 3, the code of a failed analysis, without the analyses, the report and the adoption; the summary of the kind counts thefailedruns. - A count column whose rows differ is warned of only where its smallest count is the weight of a mapping (#783): with
use_mapping_weightsof the collection, the curve weightingMAPPINGand noweightof the mapping. The warningcount is not unique for datasetfired for correct data with a count per row, e.g. the flow rates of a machine perfusion, also for a mapping with an explicitweightand for a fit whose weighting does not read the weight of a mapping, and could only be silenced by a fixed count, which dropped the count of every row. The count of every row stays the count of its point in the report and the document of the problem, and every result is unchanged.
Known gap
- A PEtab problem which
sbmlsim.fit.petab_v2.corereads and evaluates in sbmlsim-core (also the PEtab test suite and the benchmark collection) still runs on a runtime of the bindings with their 30 s, sincePetabProblem.from_yamltakes no runtime (sbmlsim-core#229).