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

FlexMeasures / flexmeasures / 26687373065
81%

Build:
DEFAULT BRANCH: main
Ran 30 May 2026 03:29PM 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

30 May 2026 03:16PM UTC coverage: 80.605% (+0.1%) from 80.505%
26687373065

push

github

web-flow
feat: allow setting a consumption/production sensor in the flex-model of an asset (#2190)

* feat: allow setting a power sensor in the flex_model of an asset when patching

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

* fix: fields without a data_key just use the variable name as data_key

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

* feat: switch to consumption and production sensor reference fields in DBStorageFlexModelSchema

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

* feat: add UI support for new fields

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

* docs: document new fields in scheduling.rst

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

* feat: add new fields to StorageFlexModelSchema

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

* chore: update openapi-specs.json

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

* storage: add consumption and production output sensor support
Context:
- StorageScheduler could already write state-of-charge schedules to a secondary sensor
- Users wanted the same for consumption and production power
Change:
- Add StorageScheduler._build_consumption_production_schedules() static method
- Call it in compute(), with resampling and rounding matching the soc_schedule pattern
- If only consumption sensor defined: full power profile (consumption positive, production negative)
- If only production sensor defined: full power profile inverted (production positive, consumption negative)
- If both defined: split — non-negative part to consumption sensor, sign-flipped non-positive part to production sensor
- Include results in return_multiple output as consumption_schedule / production_schedule entries
- Sign convention is encoded in the key name so no consumption_is_positive attribute is needed

* tests: expand storage scheduler tests for consumption/production output sensors
Context:
- StorageScheduler now supports writing schedules to consumption and production sensors
Change:
- test_batter... (continued)

97 of 101 new or added lines in 6 files covered. (96.04%)

12971 of 16092 relevant lines covered (80.61%)

0.81 hits per line

Uncovered Changes

Lines Coverage ∆ File
2
88.14
0.27% flexmeasures/data/models/planning/storage.py
1
91.48
-0.38% flexmeasures/data/schemas/scheduling/storage.py
1
91.0
0.92% flexmeasures/data/services/scheduling.py
Jobs
ID Job ID Ran Files Coverage
1 26687373065.1 30 May 2026 03:29PM UTC 166
80.61
GitHub Action Run
Source Files on build 26687373065
  • Tree
  • List 166
  • Changed 7
  • Source Changed 6
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #26687373065
  • 7f56bfae on github
  • Prev Build on main (#26625838252)
  • Next Build on main (#26694104257)
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