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

FlexMeasures / flexmeasures / 31130498864
84%
main: 84%

Build:
Build:
LAST BUILD BRANCH: fix/persist-commitment-costs-job-meta
DEFAULT BRANCH: main
Ran 06 Aug 2026 11:28PM UTC
Jobs 1
Files 175
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

06 Aug 2026 11:07PM UTC coverage: 83.774% (-0.03%) from 83.802%
31130498864

push

github

BelhsanHmida
feat: support a `default` fallback on sensor references

A sensor reference on any flex-model or flex-context field may now carry a
`default` quantity, e.g. {"sensor": 50, "default": "0 kWh"}. It fills the
time slots for which the referenced sensor holds no value, and is settable
from the flex-model UI.

This is the uncontroversial half of #2267, split out on Felix's suggestion
so it can land while the SoC constraint hardness question is settled across
the whole flex-model (see #2395). The canonical soc-min/soc-max work stays
on feat/dynamic-soc-bounds-defaults.

Note that a default fills *every* slot the sensor leaves empty, so a sensor
recording only occasional setpoints becomes densely constrained; the field
documentation says so.

Also omit `default` from serialized sensor references when it is unset,
rather than emitting `default: None`, which is not valid input on the way
back in and broke the forecaster config round-trips.

Signed-off-by: Mohamed Belhsan Hmida <mohamedbelhsanhmida@gmail.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Signed-off-by: Mohamed Belhsan Hmida <mohamedbelhsanhmida@gmail.com>

30 of 42 new or added lines in 2 files covered. (71.43%)

67 existing lines in 2 files now uncovered.

17131 of 20449 relevant lines covered (83.77%)

0.84 hits per line

Uncovered Changes

Lines Coverage ∆ File
12
85.98
-1.55% flexmeasures/data/schemas/sensors.py

Coverage Regressions

Lines Coverage ∆ File
63
85.98
-1.55% flexmeasures/data/schemas/sensors.py
4
88.05
0.23% flexmeasures/data/models/planning/utils.py
Jobs
ID Job ID Ran Files Coverage
1 31130498864.1 06 Aug 2026 11:28PM UTC 175
83.77
GitHub Action Run
Source Files on build 31130498864
  • Tree
  • List 175
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #31130498864
  • 42406c92 on github
  • Prev Build on feat/retire-fallback-scheduler (#31054220184)
  • Next Build on feat/sensor-reference-defaults (#31130732722)
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