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

FlexMeasures / flexmeasures / 28922549990
81%
main: 81%

Build:
Build:
LAST BUILD BRANCH: feat/better-and-fast-asset-charts
DEFAULT BRANCH: main
Ran 08 Jul 2026 06:48AM UTC
Jobs 1
Files 167
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

08 Jul 2026 06:30AM UTC coverage: 81.181%. First build
28922549990

push

github

Flix6x
Add smarter defaults for commodity contexts

A commodities-list entry that omits some or all grid-connection
fields (consumption-price, production-price, site-consumption-
capacity, site-production-capacity, site-power-capacity) previously
either failed (a missing consumption-price crashes the scheduler) or
left ambiguous, error-prone combinations to fill in by hand. Add
CommodityFlexContextSchema.fill_grid_connection_defaults, a post-load
step that derives sensible defaults from which of those five fields
were explicitly given:

- none given: no grid connection (both site capacities default to 0,
  as soft constraints; site-power-capacity stays unlimited)
- only a price given: assume a grid connection in that direction
  (unlimited capacity there), 0 capacity in the other direction
- only a capacity given: 0 price in that direction, and the other
  direction defaults to a 0 capacity (and price)
- only site-power-capacity given: a hard constraint at that capacity
  for both directions, with 0 prices

Combinations of explicitly given fields apply the same rules per
direction independently. A 0 capacity filled in by this method is
enforced as a soft constraint (a default breach price is filled in
too), not a hard, potentially infeasible, one; explicit hard
constraints (e.g. via site-power-capacity alone) get no breach price.

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

42 of 43 new or added lines in 1 file covered. (97.67%)

14123 of 17397 relevant lines covered (81.18%)

0.81 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
93.95
flexmeasures/data/schemas/scheduling/__init__.py
Jobs
ID Job ID Ran Files Coverage
1 28922549990.1 08 Jul 2026 06:48AM UTC 167
81.18
GitHub Action Run
Source Files on build 28922549990
  • Tree
  • List 167
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #28922549990
  • dbe922f7 on github
  • Next Build on feat/commodity-context-defaults (#28939399909)
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