Skip to content

Fix tidy output of calendar resolutions and congestion costs (#79) - #80

Merged
sbudai merged 1 commit into
mainfrom
develop
Oct 20, 2026
Merged

sbudai merged 1 commit into
mainfrom
develop

Conversation

@sbudai

@sbudai sbudai commented Oct 20, 2026

Copy link
Copy Markdown
Collaborator
  • costs_of_congestion_management(): keep the cost amount (ts_point_congestion_cost_price_amount) in the tidy output; the column whitelist still held the old xmlconvert-era name.
  • P1D, P7D, P1M, P3M and P1Y point timestamps are now stepped with %m+% in the local time zone of the market area, inferred from the period boundaries, so each point starts at local midnight. Before, monthly steps in UTC rolled "Feb 31" over to 3 March and DST was ignored.
  • The A03 expansion counts the calendar steps in [start, end) instead of dividing by an average duration, so sparse monthly series no longer lose their last month. Sparse daily series lost about half of their days, because duration("1 DSTday") is not one day.
  • Fixed resolutions (PT4S ... PT60M) are unchanged.
  • Add regression tests and a fixture made from the XML in the issue.
  • Bump the version to 1.3.1 and describe the changes in NEWS.

Fixes #79

Description

Fixes #

Type of change

  • Bug fix
  • New endpoint / feature
  • Refactor / cleanup
  • Documentation only

Affected module(s)

  • en_market
  • en_load
  • en_generation
  • en_transmission
  • en_outages
  • en_balancing
  • en_helpers / utils
  • Tests / CI
  • Documentation / vignettes

Checklist

  • Code follows project conventions (snake_case, cli:: messages, checkmate:: validation)
  • New exported functions include @return and @examplesIf roxygen tags
  • Tests added / updated — covr::package_coverage() passes at 100 %
  • lintr::lint_package() passes with no new warnings
  • devtools::document() run — man pages up-to-date
  • devtools::check() passes locally (0 errors, 0 warnings, 0 notes)
  • No ENTSOE_PAT tokens or secrets committed
  • NEWS.md updated (if user-facing change)

- costs_of_congestion_management(): keep the cost amount
  (ts_point_congestion_cost_price_amount) in the tidy output; the
  column whitelist still held the old xmlconvert-era name.
- P1D, P7D, P1M, P3M and P1Y point timestamps are now stepped with
  %m+% in the local time zone of the market area, inferred from the
  period boundaries, so each point starts at local midnight. Before,
  monthly steps in UTC rolled "Feb 31" over to 3 March and DST was
  ignored.
- The A03 expansion counts the calendar steps in [start, end) instead
  of dividing by an average duration, so sparse monthly series no
  longer lose their last month. Sparse daily series lost about half of
  their days, because duration("1 DSTday") is not one day.
- Fixed resolutions (PT4S ... PT60M) are unchanged.
- Add regression tests and a fixture made from the XML in the issue.
- Bump the version to 1.3.1 and describe the changes in NEWS.

Fixes #79
@sbudai sbudai self-assigned this Oct 20, 2026
@sbudai
sbudai merged commit 133a2ac into main Oct 20, 2026
8 of 10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

costs_of_congestion_management(): amount column dropped, P1M timestamps wrong, A03 fill loses the last month

1 participant