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

FlexMeasures / flexmeasures-client
95%

Build:
DEFAULT BRANCH: main
Repo Added 17 Apr 2023 03:03PM UTC
Token Xu0VQjUdnoUY2ZWUzvz9W4mYaEyol0mOv regen
Build 294 Last
Files 21
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

LAST BUILD ON BRANCH main
branch: main
CHANGE BRANCH
x
Reset
Sync Branches
  • main
  • chore/bump-certifi
  • chore/deps-upgrade
  • chore/s2-follow-imports
  • chore/s2-instruments
  • chore/urllib3-v2.7.0
  • ci/milestone-check
  • ci/release-with-github-token
  • copilot/add-badges-to-readme
  • copilot/fix-pypi-publish-long-description
  • copilot/issue-210-fix
  • copilot/support-forecasting-endpoints
  • copilot/switch-to-zoneinfo-library
  • copilot/update-pypi-publish-fix
  • copilot/update-scheduling-triggers-to-use-asset-endpoint
  • copilot/update-server-version-tracking
  • copilot/update-test-coverage-issue-205
  • copilot/update-trigger-and-get-schedule-methods
  • dev/fix-handshake-handler
  • dev/s2-frbc-complete
  • dev/s2-frbc-p1
  • docs/231-changelog
  • docs/hems-reading-results
  • docs/s2-changelog-legible
  • docs/s2-changelog-what-ships
  • docs/s2-comments-legible
  • docs/s2-cosim-instance-config
  • docs/screenshots-repo
  • feat/228-automation-methods
  • feat/accept-202-trigger-responses
  • feat/await-ingestion
  • feat/client-version-header
  • feat/frbc-charging-efficiency
  • feat/frbc-schedule-retry
  • feat/hems-script-improvements
  • feat/integrate-reporting-api-hems
  • feat/listen-to-202-status-in-getschedule
  • feat/s2-carve-handler-options
  • feat/s2-example-site-graphs
  • feat/s2-measurement-recorder
  • feat/s2-plan-throttle
  • feat/s2-simulated-clock
  • feat/s2-site-per-resource-manager
  • feat/s2-usage-correction
  • feat/unit-param-in-file-upload
  • feat/update-client-with-429-and-job-progress
  • fix/cem-json-loads
  • fix/cem-script-startup
  • fix/forecasting-set-ensure-positive-explicitly
  • fix/frbc-actuator-measurement
  • fix/frbc-element-selection
  • fix/frbc-energy-unit
  • fix/frbc-instruction-storm
  • fix/frbc-operation-mode-power-bands
  • fix/frbc-plan-on-storage-status
  • fix/frbc-record-declared-profiles
  • fix/frbc-report-active-mode-power
  • fix/frbc-schedule-power-unit
  • fix/frbc-soft-fill-level-band
  • fix/frbc-time-base
  • fix/lift-python-version-cap
  • fix/move-to-asset-schedule-trigger
  • fix/no-dirty-git-on-publish
  • fix/parse-json-sensors-to-show
  • fix/parse-json-upon-update
  • fix/pre-commit-merge-conflict-check
  • fix/pypi-no-like-rst-directives
  • fix/recursive-json-encoding
  • fix/s2-belief-times-on-the-clock
  • fix/s2-cosim-stack-v1
  • fix/s2-declared-range-reaches-the-server
  • fix/s2-example-heat-pump
  • fix/s2-failures-answered-or-said
  • fix/s2-flex-model-says-what-it-means
  • fix/s2-housekeeping
  • fix/s2-session-robustness
  • fix/s2-sweep
  • fix/s2-transitions-warning
  • fix/schedule-force-field-dev-version
  • fix/setuptools-scm-pretend-version
  • qa/hems-report-cli-override
  • refactor/uv-migration
  • test/milestone-recheck
  • test/s2-coverage
  • v0.9.0
  • v0.9.1
  • v0.9.2
  • v0.9.3
  • v0.9.5
  • v0.9.6

08 Nov 2026 04:40PM UTC coverage: 94.941% (-0.7%) from 95.681%
42501082960

push

github

web-flow
feat(S2): #188 finished, reconciled onto main (1 of 2) (#278)

* fix(TUNES): record a leakage behaviour instead of refusing it

FillRateBasedControlTUNES.send_leakage_behaviour read its fill-level scale from
self._fill_level_scalefill_level_scale, an attribute name pasted in twice, which
has been there since #158. The AttributeError that raised was caught by the
handler's broad except as if the post had failed, so every FRBC.LeakageBehaviour
was answered with PERMANENT_ERROR and none was ever recorded.

mypy could not see it: the type-check task only looks at files that contain
`from typing import`, and the FRBC base class is not one of them, so the
attribute lookup went to Any. The next commit widens that.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CcpawsJs74cSwFLXkz7ZwW
Signed-off-by: F.N. Claessen <claessen@seita.nl>

* chore(types): check every source file, including untyped function bodies

The type-check task fed mypy only the files that contain `from typing import`,
which were seven of eighteen, and left out frbc_simple.py, both control-type
__init__.py files and the example scripts. With --follow-imports skip, anything
those files defined then looked like Any to the files that were checked, which
is how the previous commit's misspelt attribute went unnoticed since #158.

It now checks all of src, and with --check-untyped-defs, so the bodies of
functions without annotations are checked too. What that surfaced, besides the
attribute fixed in the previous commit:

- get_access_token stored a token whose type could be None and then used it as a
  header value; it now returns the token, so the caller holds a str.
- get_access_token and get_versions indexed a response typed as a dict or a list;
  each now says so plainly when the server answers with something other than an
  object, instead of failing on the lookup.
- The S2 translations annotated their resolution as a string while frbc_... (continued)

816 of 822 new or added lines in 15 files covered. (99.27%)

1 existing line in 1 file now uncovered.

2909 of 3064 relevant lines covered (94.94%)

4.64 hits per line

Relevant lines Covered
Build:
Build:
3064 RELEVANT LINES 2909 COVERED LINES
4.64 HITS PER LINE
Source Files on main
  • Tree
  • List 21
  • Changed 4
  • Source Changed 2
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
42501082960 main feat(S2): #188 finished, reconciled onto main (1 of 2) (#278) * fix(TUNES): record a leakage behaviour instead of refusing it FillRateBasedControlTUNES.send_leakage_behaviour read its fill-level scale from self._fill_level_scalefill_level_scale,... push 08 Nov 2026 04:41PM UTC web-flow github
94.94
42011499910 main feat(FRBC): ask again for a schedule that failed to arrive (#254) * feat(FRBC): ask again for a schedule that failed to arrive A scheduling job can fail on a transient of its own: a worker crashing out of its solver, or a pandas error over the w... push 05 Nov 2026 10:33AM UTC web-flow github
95.68
41935830916 main feat(FRBC): plan a schedule against what the actuator converts power at (#253) * feat(FRBC): plan a schedule against what the actuator converts power at An operation mode states a fill rate and a power range, and the ratio between the two is wha... push 04 Nov 2026 11:43PM UTC web-flow github
95.68
41899236458 main fix(FRBC): record an actuator's power so that it means what the sensor means (#252) * fix(FRBC): post an actuator's power in the sign the sensor records it in S2 fixes one sign convention, where positive means consumption. FlexMeasures leaves it... push 04 Nov 2026 07:41PM UTC web-flow github
95.68
41873862762 main fix(FRBC): ask for a schedule in the power values the actuator can run at (#248) * fix(FRBC): ask for a schedule in the power values the actuator can run at An S2 actuator states, per operation mode and per element of it, the power ranges it can... push 04 Nov 2026 05:05PM UTC web-flow github
95.68
41860133607 main fix(FRBC): ask for a schedule in the unit the operation modes state power in (#247) * fix(FRBC): ask for a schedule in the unit the operation modes state power in S2 states an operation mode's power ranges in watts, and the example server create... push 04 Nov 2026 03:41PM UTC web-flow github
95.67
41829083794 main docs(HEMS): explain why measurements cover the simulated days, and how to replay them (#250) * docs(HEMS): explain why measurements cover the simulated days The HEMS tutorial uploads measurements for the simulated days up front, which makes the ... push 04 Nov 2026 12:25PM UTC web-flow github
95.67
41828896722 main Keep screenshots in the FlexMeasures/screenshots repo (#249) * docs(HEMS): take the dashboard screenshot from the screenshots repo The image already lives in FlexMeasures/screenshots (identical file), where the FlexMeasures docs link it from. It... push 04 Nov 2026 12:24PM UTC web-flow github
95.67
41825332314 main docs: break docstrings and comments only after punctuation here too (#246) * docs: break docstrings and comments only after punctuation here too The FlexMeasures repo keeps this convention in .github/instructions/, where it is the source of trut... push 04 Nov 2026 11:59AM UTC web-flow github
95.67
41825255908 main fix(FRBC): ask for a schedule against what a resource manager declared about its storage (#245) * fix(FRBC): ask for a schedule against what a resource manager declared A resource manager says where it wants its storage kept, what it expects to ... push 04 Nov 2026 11:59AM UTC web-flow github
95.67
See All Builds (263)
  • Settings
  • Repo on GitHub
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