Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When aggregating, recalculate last record if partial #525

Merged
merged 2 commits into from
Jan 10, 2025

Conversation

aptiko
Copy link
Member

@aptiko aptiko commented Jan 10, 2025

No description provided.

aptiko added 2 commits January 8, 2025 19:40
Until now, when aggregating, it ignored and did not store the last
record of the aggregated time series if it contained the MISS flag.
This was because more source time series data might become available
later. However it also meant that if more source time series data never
became available, the last aggregated record would never be calculated.
In addition, we sometimes want to get an estimation of the current daily
value a bit before midnight.

Now the last record is calculated alright given enough data (i.e. if
the missing data are up to max_missing), and it is recalculated when
more source data become available.

This commit also upgrades pthelma to 2.1, and, correspondingly, changes
the missing flag from "MISS" to "MISSING3", where, in this example, 3 is
the number of missing values in the source data. This will not migrate
existing records. This lack of migration should not cause any problems
with aggregation.
Copy link

codecov bot commented Jan 10, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.30%. Comparing base (60aec0b) to head (44e0d56).
Report is 2 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #525   +/-   ##
=======================================
  Coverage   97.30%   97.30%           
=======================================
  Files          51       51           
  Lines        3234     3234           
=======================================
  Hits         3147     3147           
  Misses         87       87           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@aptiko aptiko merged commit 44e0d56 into openmeteo:master Jan 10, 2025
3 checks passed
@aptiko aptiko deleted the dev-62--recalculate-aggregated branch January 10, 2025 07:47
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.

1 participant