Skip to content

Add the reaction-rules pictures for the flexmeasures-client scheduling guide - #21

Merged
Flix6x merged 6 commits into
mainfrom
flexmeasures-client-reaction-rules
Dec 2, 2026
Merged

Flix6x merged 6 commits into
mainfrom
flexmeasures-client-reaction-rules

Conversation

@Flix6x

@Flix6x Flix6x commented Nov 25, 2026

Copy link
Copy Markdown
Member

Three pictures drawn by the examples of FlexMeasures/flexmeasures-client#299, embedded in its scheduling guide:

  • flexmeasures-client/reaction-rules-day.png: one day after saldering, a plain schedule against reaction rules.
  • flexmeasures-client/reaction-rules-cost.png: what that day costs, four ways.
  • flexmeasures-client/reaction-rules-retrigger.png: a band exit second by second, with the exit gate letting a kettle pass and the oven firing one retrigger.

Regenerate with python examples/reaction_rules_saldering.py --out flexmeasures-client and python examples/reaction_rules_retrigger.py --out flexmeasures-client from the client repository (dependency group examples).

🤖 Generated with Claude Code

https://claude.ai/code/session_01WGt2vUmJ4goxUYxexuArDE

@Flix6x Flix6x left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Self-review before merging.

The pictures are what the examples draw. I redrew all three from flexmeasures-client#299 at 4fd1ea5fe
(python examples/reaction_rules_saldering.py --out … and python examples/reaction_rules_retrigger.py --out …, dependency group examples):
each is pixel-identical to the PNG in this PR (89b1cc7). The numbers the saldering example prints match the cost bars
(4.22, 3.87, 5.14 and 4.27 EUR), and the retrigger example prints band exits at 40 s and 210 s, one retrigger at 330 s and the new plan at 360 s,
which is where the picture draws them.

Merge order. docs/scheduling.rst in flexmeasures-client#299 embeds the three pictures from this repository's main,
and the flexmeasures-client/ folder doesn't exist on main yet, so this PR should be merged before (or together with) #299;
otherwise the guide shows three broken images.

Follow-up (we do it ourselves). After this review I push two redrawn pictures to this PR and the matching changes to flexmeasures-client#299:
the label "feed-in price below zero" moved clear of the legend in the day picture, the dwell shaded after both band exits in the band-exit picture,
and the guide's "within a few cents of the plan" sentence fixed (reaction rules end 0.40 EUR above the plan and within 0.05 EUR of the saldering day).
The pictures still need to be merged before #299.

… 39b9d5a9

The label "feed-in price below zero" now sits clear of the legend in the day picture, and the band-exit picture shades the dwell after the kettle's exit as well as the oven's.
The cost picture redraws identically, so it is unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Flix6x

Flix6x commented Dec 1, 2026

Copy link
Copy Markdown
Member Author

The follow-ups from the review, pushed:

  1. Guide (flexmeasures-client#299, docs/scheduling.rst): reaction rules now "save 0.87 EUR … within a few cents of what it cost under saldering, though still 0.40 EUR above what the planner expected", with a test that checks the sentence against the example's numbers: FlexMeasures/flexmeasures-client@65e875e9
  2. Day picture (examples/reaction_rules_saldering.py): the label "feed-in price below zero" moved low in the shaded hours, clear of the legend, with a test that the two don't overlap: FlexMeasures/flexmeasures-client@95367dd3
  3. Band-exit picture (examples/reaction_rules_retrigger.py): the dwell is shaded after the kettle's exit (0:40) as well as the oven's (3:30), with a test for a dwell after each exit: FlexMeasures/flexmeasures-client@39b9d5a9
  4. This PR: both pictures redrawn from #299 at 39b9d5a9 and pixel-identical to what it draws now; the cost picture redraws identically, so it is unchanged: ef02474

All 1079 tests of flexmeasures-client pass at 39b9d5a9. Merge order still holds: this PR before flexmeasures-client#299.

@Flix6x
Flix6x merged commit 2b77b29 into main Dec 2, 2026
3 checks passed
@Flix6x
Flix6x deleted the flexmeasures-client-reaction-rules branch December 2, 2026 11:13
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