Engine v0.2: flow graph, datapoint states, gates, modes, overrides, deviations (RBT-WP-0007)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Assistant: claude-code Assistant-Model: sonnet Assistant-Process: 295952@bnt-lap001 Assistant-Session: e93f64ad-516c-46eb-9666-aad8d300c477
This commit is contained in:
parent
3fc279a6ed
commit
60d983769f
13 changed files with 1017 additions and 22 deletions
|
|
@ -112,7 +112,7 @@ def load(path: Path) -> Pack:
|
|||
|
||||
def render(command: str, values: dict[str, str], pack: Pack) -> str:
|
||||
"""Substitute parameters into a command template. Unknown or unset -> error."""
|
||||
params = {p["id"]: p for p in pack.data.get("parameters", [])}
|
||||
params = {p["id"]: p for p in (pack.data.get("parameters") or pack.data.get("datapoints") or [])}
|
||||
|
||||
def sub(m: re.Match) -> str:
|
||||
name = m.group(1)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue