Skip to content

Fix PandasReporter input unit conversion after resampling - #2876

Open
VolMax-Studio wants to merge 1 commit into
FlexMeasures:mainfrom
VolMax-Studio:fix/pandas-reporter-unit-resolution-2868
Open

VolMax-Studio wants to merge 1 commit into
FlexMeasures:mainfrom
VolMax-Studio:fix/pandas-reporter-unit-resolution-2868

Conversation

@VolMax-Studio

Copy link
Copy Markdown

Fixes #2868

PandasReporter currently rescales input belief values to a requested resolution before converting power to energy, but passes the original sensor interval to unit conversion. Use the returned BeliefsDataFrame's actual event resolution (with an empty-data fallback) to avoid resolution-dependent energy totals.

Added offline regression tests for 15→60 min, 60→15 min, unchanged 15 min, and automatically selected 15 min reporting resolution. On Python 3.12: 4 passed; on unmodified current upstream: 3 failed, 1 passed. These tests mock sensor data reads; no PostgreSQL-backed integration tests were run.

@read-the-docs-community

Copy link
Copy Markdown

Documentation build overview

📚 flexmeasures | 🛠️ Build #35939448 | 📁 Comparing 1c4e3fb against latest (0321d69)

  🔍 Preview build  

1 file changed
± api/v3_0.html

This branch has not been deployed

No deployments
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.

Observed resolution-dependent input unit conversion in PandasReporter

1 participant