pypi sbmlsim 0.62.0

49 minutes ago

Release notes for sbmlsim 0.62.0

sbmlsim

A page of the app of a model scans a knob: every panel of the page draws each of its curves once per value of the knob, coloured by the value on one colour scale of the page, while the other knobs stay live (#798). The web app of a model draws it with sbmlsim-web 0.9.0 on sbmlsim-core 0.56.0. Every app, panel, payload and bundle without a scan is unchanged.

The scan of a page

  • AppPage.scan (sbmlsim.panel.PageScan): the knobs of a page a reader scans, one at a time, each PageScan(knob, values=(), points=None, on=False): its values as declared, points over the range of a range knob (Knob.values), or neither for the stops of the knob (the choices of a choice knob, the named stops of a range knob); two to MAX_SCAN_VALUES (16) values, each once, at most one scan of a page on, the one it opens with. PageScan.resolved(knob) resolves a scan against its knob. A page without a scan dumps without scan, so app/1 of before is byte for byte the same.
  • Checked at startup (_check_scans of sbmlsim.serve.runner), in every variant the app is served in: the knob is a knob of a part of the page, the values resolve from it and are values of it in every part which declares it, and no panel of the steps of the integrator, which runs no grid, is scanned. A scanned knob is owned by the shell of the page, as a knob of a scenario (ModelEntry.shared).
  • The app route answers every scan with its values (pages[].scan, PageScanPayload: knob, values, on), so a shell reads the values and never the rule which gave them; the static bundle carries them in the answers of the app.
  • A grid of values. The points of a knob of SimulateRequest.grid are a count, as before, or the values themselves ({"grid": {"crcl": [110.0, 45.0, 10.0]}}), each a value of the knob and given once (sbmlsim.serve.runner.GridPoints, grid_values): a panel runs a scan as one request, and the panels of a page which run one simulation share one run of it. A count keeps its spec hash and its answers. A bad entry of a grid is the one 422 error at its knob it was (["body", "grid", "<knob>"]): a count which is no count answers int_from_float, int_parsing, int_type, greater_than_equal or less_than_equal as before, and values which are no values the error of their list (too_short, too_long) or of their first value which is no number (float_parsing), where 0.61 answered int_type for any list.
  • A map panel runs a grid. POST /api/models/{model}/maps/{map}/simulate takes a grid as a panel does, a row per point, so a map runs a scan of its page in one request; its maps show one value of it at a time, the curves of its zones every value.

Changed

  • The 422 of draws of a map panel is MAP_NO_DRAWS ("A map panel runs no draws of an uncertainty.") of sbmlsim.serve.app, where it answered ONE_STATE before, since a map runs a grid now. ONE_STATE is the 422 of a grid or of draws of a live figure and names it alone ("A live figure runs one state of its knobs, without a grid and without draws.").
  • Requires sbmlsim-core 0.56.0, whose panel endpoint of the page runs a grid of values and a grid of a map panel, as the service answers them (bitwise on the toy lobule) (#802).
  • The web app of a model takes sbmlsim-web 0.9.0: the selector of the scan in the card of the settings, the legend of its values or a colour bar from 11 values, the family of curves in every panel and zone, the maps at one value of the scan (#802).

Examples

  • The HCTZ demo (examples/panels/hctz.py) scans the stages of the renal function on the page renal, four doses over the range of the dose on dose, and the creatinine clearance over its stops or the dose over its choices on patient; the toy lobule (examples/panels/lobule.py) scans the flow over three values and the inflow oxygen over twelve, a colour bar.

Documentation

  • docs/serve.md: the section Scans of a page, the grid of values of a request, the grid of a map panel and the scan in the static bundle.

Don't miss a new sbmlsim release

NewReleases is sending notifications on new releases.