|
STAR
Cal STAR — firmware, DAQ server, and engine design
|
Classes | |
| class | CreatePayload |
| class | ReleasePayload |
Variables | |
| dict | ui = {} |
| store | |
| router = make_router(store, prefix="/api/engine/documents") | |
Per-user engine designs with sharing, microversion history and named releases.
A thin binding of :mod:`stardesign.documents` -- the router shared by all three
design tools -- to this app's payload shape and route prefix. Everything of
substance, including ``_resolve_doc`` (the one place cross-user access is
granted), lives there.
The payload here is ``{"config": <dict>, "ui": <dict>}``; pid-designer's is
``{nodes, edges}``. That, the prefix, and the noun are the whole difference.
``ui`` carries the authored state that is not in ``PintleEngineConfig`` -- the
controller commands, the time-series pressure profiles, Layer 4's vehicle
definition, the layer run settings, the plot definition. It is opaque here, as
the config is: the frontend owns its shape (see frontend/src/lib/designState.ts).
It defaults to ``{}`` so every design stored before it existed still loads.
Definition at line 73 of file documents.py.
| backend.routers.documents.store |
Definition at line 52 of file documents.py.
| dict backend.routers.documents.ui = {} |
Definition at line 37 of file documents.py.