Lemonergy · Studio block
Authored unit policy
Rejects authored unit annotations outside a configured allowed-unit set.
- Implementation ID
unit-system- Reviewed
- 2026-10-27
Behavior
Validates explicit authored-unit annotations against an allowed-unit set, without silently changing numerical values.
Interface
This reference describes a studio block; its configuration fields are listed below. It has no connected Studio ports.
Parameters
Defaults are initial model values. Select values for your own model and operating conditions.
| Parameter | Unit | Default | Meaning and limits |
|---|---|---|---|
allowed UnitsallowedUnits | 1 | ["1", "s", "m", "kg", "A", "K", "V", "W", "J"] | Explicit allowedUnits in the worked model. |
strictstrict | 1 | True | Explicit strict in the worked model. |
Equations and rules
allowed(annotation unit) must be true for every annotated numerical parameter
Worked example
Authored unit policy — executable model
An annotated2-second parameter passes an SI-style policy. Annotating the same value in centimetres is rejected when cm is not allowed.
Open Studio example after release →| Output | Time (s) | Expected value | Unit | Absolute tolerance |
|---|---|---|---|---|
ResultResult | 0.2 | 4 | 1 | 1e-09 |
Use in a workflow
Authored unit policy — executable model
Rejects authored unit annotations outside a configured allowed-unit set.
- Authored unit policy: Validates explicit authored-unit annotations against an allowed-unit set, without silently changing numerical values.
- Use the block reference for settings and connections.
- Implementation tested locally; public release pending.
Connected concepts
Limits and interpretation
- Checks annotations, not inferred units for every equation. Unannotated parameters are not assigned a unit automatically. The root policy applies to definitions unless they declare their own policy.
Reference basis
This compiler and software type contract is defined by the documented behavior and executable example; no external research result or full external API parity is claimed.
Implementation sources
This reference follows the public interface and locally verified numerical checks for an upcoming release.
Contract: Lemonergy Studio public contract · Verification record: verification-2026-10-27
docs/glossary/native-block-verification.json
This implementation and its workflow uses (JSON) · Knowledge graph (JSON-LD)