Skip to content

Run a simulation on a single forecast window - #1692

Merged
jd-lara merged 5 commits into
psy6from
mb/single-window-interval
Oct 11, 2026
Merged

jd-lara merged 5 commits into
psy6from
mb/single-window-interval

Conversation

@m-bossart

Copy link
Copy Markdown
Contributor

InfrastructureSystems records a single-window forecast's interval as an empty period, since there is no next window.
determine_intervals rejected that with InvalidValue("Model UC interval not set correctly").
A single-window model now steps by its forecast horizon; asking for more steps than windows still fails at build with ConflictingInputsError.

Testing

Adds two testsets to test_simulation_build.jl on a one-bus, one-window system.
Before the fix the one-step simulation throws InvalidValue; after it, all 38 tests in the file pass (with #1690 and #1691 applied).

🤖 Generated with Claude Code

@jd-lara
jd-lara changed the base branch from psy6 to mb/follow-iom-pom-api October 10, 2026 23:22
@codecov

codecov Bot commented Oct 11, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@jd-lara
jd-lara changed the base branch from mb/follow-iom-pom-api to psy6 October 11, 2026 03:30
@jd-lara
jd-lara self-requested a review October 11, 2026 03:30
@jd-lara
jd-lara merged commit 5deb541 into psy6 Oct 11, 2026
10 of 11 checks passed
@jd-lara
jd-lara deleted the mb/single-window-interval branch October 11, 2026 03:30
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.

2 participants