Repository navigation
Release notes for sbmlsim 0.59.3
A patch release of the style of the bands of a figure, the web app with sbmlsim-web 0.7.7 and the engine of sbmlsim-core 0.51.1, whose events at a change and at the end of a segment follow the semantics of the executor of sbmlsim.
Features
- A band has a fill colour and an opacity of its own.
Band(..., alpha=None, fill=None)andPlot.band(..., alpha=None, fill=None)draw the area of a band infill(the colour of the band without) atalpha.FigureSettings.band_alphais the opacity of a band without one, 0.2 by default (0.3 before), set for every figure of an experiment withfigure_settings = MappingProxyType({"band_alpha": 0.15}); a value which is no number within[0, 1],Noneincluded, is refused. - The bands of a run over the draws take their style from the curve.
BandStyle(alpha=None, fill=None)ofsbmlsim.plotis the style of the band of a curve,Curve(..., band=),Plot.curve(band=)andPlot.add_data(band=), whichapply_uncertaintygives the band of the curve together with its order, e.g. a grey reference band beneath the doses:plot.add_data(task="task_placebo", xid="time", yid="[cl]", label="placebo", color="black", band=BandStyle(fill="0.75", alpha=0.4), order=-1). - The areas of a plot lie beneath every line. The area of a band and of a
ShadedAreais drawn beneath every curve and median of its plot, the areas among themselves in the order of their curves, and the median of a band stays one element with its area (median_zof sbmlsim-core 0.51.0), so the legend, the selection and the read-out of a band are the ones of before. The curve of the fitted values of a run over the draws is drawn over the lines of its draws.
Fixes
- A legend of a row (
legend_scope="row") lists an entry drawn in the colour the renderer gives it once, not once per plot. - The experiment a run of experiments runs in the parent beside its pool draws its PNGs on its share of the CPUs, not on every CPU.
- The outputs of the pages of the documentation are the same in every run (the durations of the validation which sbmlutils prints are cut off).
The engine core: sbmlsim-core 0.51.1
The engine core now follows the semantics of the executor of sbmlsim where it did not (sbmlsim-core#216, #217, #218); a simulation of these cases gives other numbers than with 0.51.0, every other one the same:
- An event at the time of a change fires after the change. With the steps of the integrator as the output, an event whose trigger is true at the time of a change (a trigger of the time) executed before the change, so a formula of the change read the state after the event and the event did not fire after the change. This was a wrong result without an error. The steps of the integrator and the output of times now agree, also for a change one or two units in the last place before the end.
- Short segments near 0. A segment shorter than 1e-145, e.g. between two changes a few units in the last place apart at the time 0, is not integrated, its state is the one at its start; CVODE failed on it (
tstop ... is behind current t). A change too close to the end has its rows at its own time and the end a row of its own. - An event within the resolution before the end of a segment is in the chain of that end: the rows of the end are the state after it, as sbmlsim reads the end.
Web app
- sbmlsim-web 0.7.7 in the web app of a model and the service of the panels: the tabs of an app fit a phone and a row which scrolls steps by whole tabs, every page shares one column, the enlarged figure opens centred and pans on a phone, the settings stay on one line where they fit, the Reset of the page is dimmed at the defaults, and the control of the draws is bounded by the largest
max_drawsof the panels of a page. No contract changes.
Dependencies
sbmlsim-core>=0.51.1: the median of a band at a z of its own (0.51.0) and the events at a change and at the end of a segment (0.51.1).