• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

FlexMeasures / flexmeasures / 34358655521
85%

Build:
DEFAULT BRANCH: main
Ran 09 Sep 2026 01:52PM UTC
Jobs 1
Files 183
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

09 Sep 2026 01:41PM UTC coverage: 85.205% (+0.02%) from 85.187%
34358655521

push

github

web-flow
Resolve output-sensor references instead of skipping them (#2507)

* Resolve output-sensor references instead of skipping them

Marking the output sensors with their sign convention silently skipped any reference that
was not already a Sensor object. That covers a failure mode we cannot otherwise explain:
issue #2497 reports the same code raising an AttributeError on a sensor ID, from a path
where the flex-config reached it undeserialized. Skipping such a reference retires the
crash but not the cause; the sensor then keeps the default production-positive convention,
under which the scheduler's consumption-positive values are saved sign-flipped, and the
conflict check that should reject a mismatching attribute at trigger time does not run.

Look the reference up instead, and report one that names no sensor. A field that is not a
sensor reference at all is still left alone, since a custom scheduler is free to use these
field names for something else.

The same silent skip hid three further shapes of an undeserialized flex-config, each of
which now resolves as well: a flex-context in its multi-commodity list form, per-commodity
contexts under the `commodities` key they carry before deserialization (rather than only
`commodity_contexts` after it), aggregate fields under their dashed keys, and a device
flex-model nested in the multi-sensor form.

Closes #2497

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012nk1JXQKQNvKa8iuvdqqWW
Signed-off-by: F.N. Claessen <claessen@seita.nl>

* Add PR link to changelog entry

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012nk1JXQKQNvKa8iuvdqqWW
Signed-off-by: F.N. Claessen <claessen@seita.nl>

* Address review: make the accepted input shapes explicit

The flex-context setter takes a list as well, now that it handles a multi-commodity
flex-context before deserialization, and an output-sensor field may carry its ... (continued)

35 of 36 new or added lines in 1 file covered. (97.22%)

18798 of 22062 relevant lines covered (85.21%)

0.85 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
91.38
0.78% flexmeasures/data/services/scheduling.py
Jobs
ID Job ID Ran Files Coverage
1 34358655521.1 09 Sep 2026 01:52PM UTC 183
85.21
GitHub Action Run
Source Files on build 34358655521
  • Tree
  • List 183
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #34358655521
  • 5a0b6839 on github
  • Prev Build on main (#34356530691)
  • Next Build on main (#34363168965)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc