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

FlexMeasures / flexmeasures / 29915579583
83%

Build:
DEFAULT BRANCH: main
Ran 22 Jul 2026 11:39AM UTC
Jobs 1
Files 171
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

22 Jul 2026 11:24AM UTC coverage: 82.426% (+0.06%) from 82.366%
29915579583

push

github

web-flow
Add annotation regressors to forecaster config, merged holidays command, and timezone fix (#2178)

* cli/data_add: add --timezone to add_holidays; add holidays-by-package command; add future-annotation-regressors to pipeline schema

Context:
- add_holidays stored UTC midnight timestamps, causing holidays to appear
  at wrong local time (e.g. 1AM in Amsterdam) in the UI
- No support for the 'holidays' Python package which covers more countries
  and school holidays not in workalendar
- No way to pass annotation-based binary regressors to the forecasting pipeline

Change:
- Add --timezone option to 'flexmeasures add holidays'; holidays are now
  localized to the given timezone (UTC when omitted, with a warning)
- Add new 'flexmeasures add holidays-by-package' command backed by the
  'holidays' package; supports --country, --subdiv, --category, --timezone
- Add 'holidays>=0.57' to pyproject.toml direct dependencies
- Add future_annotation_regressors field (data_key: future-annotation-regressors)
  to TrainPredictPipelineConfigSchema for annotation-based binary regressors

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Co-authored-by: Flix6x <30658763+Flix6x@users.noreply.github.com>

* cli/data_add: improve error message for invalid subdiv/category in holidays-by-package

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Co-authored-by: Flix6x <30658763+Flix6x@users.noreply.github.com>

* forecasting: add annotation regressor support as future covariates

Context:
- TrainPredictPipelineConfigSchema already supports future_annotation_regressors
- Need to wire this config field through the pipeline execution

Change:
- Add query_account_annotations() to data/queries/annotations.py
- Add _AnnotationRegressorProxy class to base pipeline for reuse in detect_and_fill_missing_values
- Add annotation_regressors parameter to BasePipeline.__init__ with proxy/name construction
- Add _load_annotation_regressor_df() to build... (continued)

236 of 276 new or added lines in 8 files covered. (85.51%)

15656 of 18994 relevant lines covered (82.43%)

0.82 hits per line

Uncovered Changes

Lines Coverage ∆ File
21
71.96
0.49% flexmeasures/cli/data_add.py
12
94.02
-2.99% flexmeasures/data/models/forecasting/pipelines/base.py
3
77.84
0.18% flexmeasures/cli/utils.py
3
87.5
11.03% flexmeasures/data/queries/annotations.py
1
96.32
-0.39% flexmeasures/data/models/forecasting/pipelines/train_predict.py
Jobs
ID Job ID Ran Files Coverage
1 29915579583.1 22 Jul 2026 11:39AM UTC 171
82.43
GitHub Action Run
Source Files on build 29915579583
  • Tree
  • List 171
  • Changed 10
  • Source Changed 9
  • Coverage Changed 10
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #29915579583
  • 396aac3c on github
  • Prev Build on main (#29871015212)
  • Next Build on main (#29918605411)
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