Repository navigation
feat(types): rooftop solar forecast metric, 30m interval #675 - #39
Merged
Merged
Conversation
added 13 commits
October 6, 2026 12:30
…ng to_records +10h #675 [skip ci]
…rouping #675 [skip ci]
…hape #675 [skip ci]
…struct and unpickle #675 [skip ci]
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
client side of opennem/opennem#675 (rooftop solar forecast), plus two response shape fixes.
forecast:
MarketMetric.SOLAR_ROOFTOP_FORECAST30monDataIntervalandVALID_INTERVALS.NetworkTimeSeries.intervalis the literal so a30mresponse failed validation before thisforecast_run_timeonNetworkTimeSeries,Nonefor history loaded before oct 2026examples/rooftop_forecast.py, base url viaOPENELECTRICITY_API_URLresponse shape (live api sends
date_start/date_endandcolumns.region):NetworkTimeSeries.date_start/date_endandTimeSeriesColumns.region(+status).start/end/network_regionstay as deprecated aliases with the same values, kept in step on validate, assignment, copy, construct and unpickle, and they warn on readto_records()/to_pandas()/to_polars()no longer shift intervals +10h and includeregion(andunit_codefor facilities). default row shape is unchanged, one row per value. new keyword-onlymerge_metrics=Truegives one row per interval + grouping with a column per metricto_polars()scans every row for the schema, it dropped any metric whose rows started after row 100start/end,network_region, utc timestamps) still parse and give the same record columns and times as beforebreaking for data frame users: interval is no longer +10h and records gain region/status/unit_code. changelog has a breaking changes section with a before/after row, readme has an upgrading to 0.12 note.
readme, changelog, bump to 0.12.0. don't publish until the prod release.
pytest (56 incl. new compat + regression tests, also under
-W error::DeprecationWarning), ruff, basedpyright (no new errors) pass. smoke tested against dev 4.5.17.dev2, all pass.