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

FlexMeasures / flexmeasures / 28506511684
81%
main: 83%

Build:
Build:
LAST BUILD BRANCH: feat/sensor-scoped-commitments
DEFAULT BRANCH: main
Ran 01 Jul 2026 09:23AM UTC
Jobs 1
Files 166
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

01 Jul 2026 09:08AM UTC coverage: 80.671%. First build
28506511684

Pull #2235

github

Flix6x
fix: skip aggregate computation for unused commodities
When a multi-commodity flex_context includes a commodity (e.g., heat)
but no devices exist for that commodity, the sum() of an empty list
returns integer 0 instead of a pandas Series. This caused AttributeError
when calling .round() on the result later in compute().
Fixed by checking if any devices contribute to the commodity before
attempting to aggregate. If no devices exist for a commodity, skip
creating an aggregate schedule for it.

Signed-off-by: F.N. Claessen <claessen@seita.nl>
Pull Request #2235: Feature: flex-context per commodity as list

148 of 160 new or added lines in 9 files covered. (92.5%)

13464 of 16690 relevant lines covered (80.67%)

0.81 hits per line

Uncovered Changes

Lines Coverage ∆ File
6
88.47
flexmeasures/data/models/planning/storage.py
5
93.38
flexmeasures/data/schemas/scheduling/__init__.py
1
74.56
flexmeasures/utils/coding_utils.py
Jobs
ID Job ID Ran Files Coverage
1 28506511684.1 01 Jul 2026 09:23AM UTC 166
80.67
GitHub Action Run
Source Files on build 28506511684
  • Tree
  • List 166
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #28506511684
  • Pull Request #2235
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