Skip to content

feat(config): map the payload mode to experiment.mode - #7

Closed
jravani wants to merge 1 commit into
feat/pv-arraysfrom
feat/operate-mode
Closed

jravani wants to merge 1 commit into
feat/pv-arraysfrom
feat/operate-mode

Conversation

@jravani

@jravani jravani commented Oct 18, 2026

Copy link
Copy Markdown
Member

Maps the payload's top-level mode (plan | operate) to experiment.mode. A payload without it stays in plan mode, and any other value is rejected by a strict lookup. The reverse writes the mode back. Mapping version 1.4.0.

The issue also proposed a fixed capacity.max on every transmission arc. A real Calliope 0.7.0.dev7 run through MEME shows this is not needed. An operate job whose arcs carry only expandable: true solves, and gives the same flows and unmet demand as the plan run of the same payload, and as an operate run with bounded arcs. Calliope uses flow_cap_max as the fixed size when it is set and leaves the arc unbounded otherwise. The mapping therefore leaves transmission unchanged.

Stacked on #4.

Tests: go test ./... and go vet ./... pass. TestMappingOperateMode and the unknown mode case of TestMappingRejectsUnconvertibleValues fail against the 1.3.0 mapping and pass with this change. The reverse golden gains "mode": "plan".

The mapping wrote experiment.mode as the constant plan, so EnerPlanET
could not ask for a run with fixed sizes. The payload's top-level mode,
plan or operate, now becomes experiment.mode; a payload without it stays
in plan mode and any other value is rejected. The reverse writes the
mode back. Mapping version 1.4.0.

Refs #6
@jravani

jravani commented Nov 1, 2026

Copy link
Copy Markdown
Member Author

Closing. This change landed on jay/enerplanet-integration, the branch EnerPlanET builds T1K from, as 95ecd29.

@jravani jravani closed this Nov 1, 2026
@jravani
jravani deleted the feat/operate-mode branch November 1, 2026 18:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant