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

FlexMeasures / flexmeasures / 24238400989
81%

Build:
DEFAULT BRANCH: main
Ran 10 Apr 2026 10:35AM UTC
Jobs 1
Files 163
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

10 Apr 2026 10:23AM UTC coverage: 77.859% (-0.01%) from 77.869%
24238400989

push

github

web-flow
Feat/dynamic soc at start (#2026)

* Use state-of-charge to infer storage start SoC

* Add coverage for inferred storage start SoC

* Document state-of-charge as start SoC source

* style: run pre-commit

Signed-off-by: Mohamed Belhsan Hmida <mohamedbelhsanhmida@gmail.com>

* fix: normalize SoC time-series values before lookup

* fix: support inherited soc-max for percent SoC lookup

* Update flexmeasures/data/schemas/scheduling/metadata.py

Co-authored-by: Felix Claessen <30658763+Flix6x@users.noreply.github.com>
Signed-off-by: Mohamed Belhsan Hmida <149331360+BelhsanHmida@users.noreply.github.com>

* Update flexmeasures/data/models/planning/storage.py

Co-authored-by: Felix Claessen <30658763+Flix6x@users.noreply.github.com>
Signed-off-by: Mohamed Belhsan Hmida <149331360+BelhsanHmida@users.noreply.github.com>

* Rename state-of-charge schema wording

* Refine soc-at-start lookup behavior

* docs: add note for  lookup radius 4 value

Signed-off-by: Mohamed Belhsan Hmida <mohamedbelhsanhmida@gmail.com>

* Make soc lookup slack explicit

* fix: handle missing state-of-charge sensors

Context:
- Resolving soc-at-start from state-of-charge happens before schema deserialization.
- Missing sensor ids should raise a controlled user-facing error instead of a raw ORM lookup failure.

Change:
- Use db.session.get for the state-of-charge sensor lookup.
- Raise ValueError when the configured sensor id does not exist.
- Add a regression test covering the missing-sensor case.

* docs: refresh generated OpenAPI specs

Context:
- The OpenAPI snapshot was stale relative to the current schema metadata.
- Regenerating it is useful, but it is separate from the scheduling bug fix.

Change:
- Rebuild flexmeasures/ui/static/openapi-specs.json from the current OpenAPI generator output.

* fix: use device sensor for soc percent fallback

Context:
- State-of-charge sensors with '%' units need soc-max as capacity for conversion to MWh.
- In multi-device scheduling, the releva... (continued)

69 of 91 new or added lines in 3 files covered. (75.82%)

3 existing lines in 2 files now uncovered.

11780 of 15130 relevant lines covered (77.86%)

0.78 hits per line

Uncovered Changes

Lines Coverage ∆ File
19
87.91
-1.65% flexmeasures/data/models/planning/storage.py
3
90.91
-5.09% flexmeasures/data/schemas/utils.py

Coverage Regressions

Lines Coverage ∆ File
2
91.86
0.0% flexmeasures/data/schemas/scheduling/storage.py
1
90.91
-5.09% flexmeasures/data/schemas/utils.py
Jobs
ID Job ID Ran Files Coverage
1 24238400989.1 10 Apr 2026 10:35AM UTC 163
77.86
GitHub Action Run
Source Files on build 24238400989
  • Tree
  • List 163
  • Changed 5
  • Source Changed 5
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #24238400989
  • eaed1ee8 on github
  • Prev Build on main (#24140823461)
  • Next Build on main (#24279786346)
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