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

FlexMeasures / flexmeasures / 29912010644
82%
main: 83%

Build:
Build:
LAST BUILD BRANCH: feat/1572-ui-commitments
DEFAULT BRANCH: main
Ran 22 Jul 2026 10:42AM UTC
Jobs 1
Files 171
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

22 Jul 2026 10:27AM UTC coverage: 82.458% (+0.03%) from 82.425%
29912010644

Pull #2335

github

Flix6x
Merge feat/2113-operation-mode-power-bands: adopt sign-explicit ranges

Reconcile multi-commodity operation modes with the base-branch review change that
renamed the operation-mode power range to sign-explicit consumption-range /
production-range keys and added _operation_mode_signed_band.

- OperationModeSchema: keep the base's consumption_range/production_range fields,
  check_ranges validator and _operation_mode_signed_band helper; drop the old
  power_range field/validator; keep commodity_power_ranges + uniqueness check.
- CommodityPowerRangeSchema: make per-commodity ranges sign-explicit too
  (consumption-range and/or production-range), with the same non-negative /
  through-zero validation.
- storage.py: factor out a shared _signed_range_endpoints core reused by both
  _operation_mode_signed_band (device's own band) and a new
  _operation_mode_commodity_bands, which derives each commodity's directional
  (factor-0, factor-1) signed endpoints aligned to the device's operation-mode factor.
- linear_optimization.py: clarify that device_mode_commodity_ranges carries signed
  (c0, c1) factor-extreme endpoints (sign resolved upstream), not (min, max).
- tests: express the cogeneration unit sign-explicitly (electricity and heat as
  production, gas as consumption), driven through the schema + helpers.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016MLCUiSdXDqDBmg8GbYp1B
Signed-off-by: F.N. Claessen <claessen@seita.nl>
Pull Request #2335: feat: multi-commodity operation modes (per-commodity ranges + no-load flow)

62 of 67 new or added lines in 3 files covered. (92.54%)

15559 of 18869 relevant lines covered (82.46%)

0.82 hits per line

Uncovered Changes

Lines Coverage ∆ File
3
88.54
-0.06% flexmeasures/data/schemas/scheduling/storage.py
1
92.7
0.23% flexmeasures/data/models/planning/linear_optimization.py
1
91.13
0.01% flexmeasures/data/models/planning/storage.py
Jobs
ID Job ID Ran Files Coverage
1 29912010644.1 22 Jul 2026 10:42AM UTC 171
82.46
GitHub Action Run
Source Files on build 29912010644
  • Tree
  • List 171
  • Changed 3
  • Source Changed 3
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #29912010644
  • Pull Request #2335
  • PR Base - feat/2113-operation-mode-power-bands (#29910563398)
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