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

FlexMeasures / flexmeasures / 29433030556
82%
main: 82%

Build:
Build:
LAST BUILD BRANCH: feat/internal-commodity-balance
DEFAULT BRANCH: main
Ran 15 Jul 2026 04:49PM UTC
Jobs 1
Files 169
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

15 Jul 2026 04:34PM UTC coverage: 81.526% (-0.002%) from 81.528%
29433030556

Pull #2322

github

Flix6x
Fix: couple stock constraints for multi-device batteries whose SoC comes from a sensor

In multi-device (list) flex-model mode, soc-at-start is not resolved during
deserialization (unlike single-sensor mode's ensure_soc_at_start()). A battery
whose only SoC input is a state-of-charge sensor (no explicit soc-at-start) - the
production shape of a battery under an apartment - therefore had soc_at_start=None,
so the scheduler applied no stock constraints and the device could discharge far
more energy than its store held.

Resolve a stock's soc-at-start from its (deserialized) state-of-charge sensor or
time series in _prepare()'s per-stock loop, on the stock-owning entry only, so
shared-stock device entries are unaffected. Resolution is defensive: if no recent
SoC value exists, the stock simply keeps no stock constraints (as before) instead
of failing the schedule.

Signed-off-by: F.N. Claessen <felix@seita.nl>
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LQFkeGxDwErydUV5ZmHmki
Pull Request #2322: Fix: couple stock constraints for multi-device batteries whose SoC comes from a sensor

11 of 14 new or added lines in 1 file covered. (78.57%)

30 existing lines in 1 file now uncovered.

14682 of 18009 relevant lines covered (81.53%)

0.82 hits per line

Uncovered Changes

Lines Coverage ∆ File
3
90.84
-0.19% flexmeasures/data/models/planning/storage.py

Coverage Regressions

Lines Coverage ∆ File
30
90.84
-0.19% flexmeasures/data/models/planning/storage.py
Jobs
ID Job ID Ran Files Coverage
1 29433030556.1 15 Jul 2026 04:49PM UTC 169
81.53
GitHub Action Run
Source Files on build 29433030556
  • Tree
  • List 169
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #29433030556
  • Pull Request #2322
  • PR Base - main (#29407634153)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc