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

FlexMeasures / flexmeasures / 26761629376
81%

Build:
DEFAULT BRANCH: main
Ran 01 Jun 2026 02:47PM 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 Jun 2026 02:35PM UTC coverage: 80.615% (-0.003%) from 80.618%
26761629376

push

github

web-flow
Fix/storage efficiency validation using consumption/production field (#2213)

* fix: @validates("storage_efficiency") uses self.consumption/self.production which are field descriptors, not data values — causing an AttributeError

Signed-off-by: F.N. Claessen <claessen@seita.nl>

* fix: move storage_efficiency validation from DBStorageFlexModelSchema to StorageFlexModelSchema; for backwards compatibility, we need to keep support for a db flex-model with storage-efficiency as a fixed quantity, without a consumption or production sensor, as the trigger message may still describe a power sensor to be used, from which the resolution can be inferred

Signed-off-by: F.N. Claessen <claessen@seita.nl>

* fix: pass validation if device flex-model contains a power sensor (see previous commit)

Signed-off-by: F.N. Claessen <claessen@seita.nl>

* feat: raise explicit error rather than passing silently when the resolution of the
storage-efficiency cannot be inferred

Signed-off-by: F.N. Claessen <claessen@seita.nl>

* fix: update tests

Signed-off-by: F.N. Claessen <claessen@seita.nl>

* refactor: combine tests for checking StorageFlexModelSchema and DBStorageFlexModelSchema

Signed-off-by: F.N. Claessen <claessen@seita.nl>

* docs: changelog entry

Signed-off-by: F.N. Claessen <claessen@seita.nl>

* docs: streamline punctuation

Signed-off-by: F.N. Claessen <claessen@seita.nl>

* fix: pass in case of trivial storage-efficiency

Signed-off-by: F.N. Claessen <claessen@seita.nl>

* refactor: move most common case to the front

Signed-off-by: F.N. Claessen <claessen@seita.nl>

---------

Signed-off-by: F.N. Claessen <claessen@seita.nl>

12 of 13 new or added lines in 2 files covered. (92.31%)

2 existing lines in 1 file now uncovered.

12983 of 16105 relevant lines covered (80.61%)

0.81 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
87.73
-0.41% flexmeasures/data/models/planning/storage.py

Coverage Regressions

Lines Coverage ∆ File
2
87.73
-0.41% flexmeasures/data/models/planning/storage.py
Jobs
ID Job ID Ran Files Coverage
1 26761629376.1 01 Jun 2026 02:47PM UTC 166
80.61
GitHub Action Run
Source Files on build 26761629376
  • Tree
  • List 166
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #26761629376
  • 57b05bc8 on github
  • Prev Build on main (#26738598195)
  • Next Build on main (#26765347582)
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