Skip to content

Conversation

@lixiliu
Copy link
Collaborator

@lixiliu lixiliu commented Mar 12, 2025

Addresses Issue #30
Mapping time resolution is defined by the time resolution in time_config as well as the optional param resampling_operation into the mapper function.

Aggregation types:
image

Disaggregation types:
image

Interpolation mapping from hourly to 20-min:
Screenshot 2025-03-11 at 11 05 24 PM

Screenshot 2025-03-11 at 11 04 30 PM

A note on NA values in interpolation:

  • If one of the two row values used in the interpolation is NA, duckdb seems to treat that NA value as 0 and the interpolated value is non NA.

  • If both values are NA, then the result is NA.

@codecov-commenter
Copy link

codecov-commenter commented Mar 12, 2025

Codecov Report

Attention: Patch coverage is 88.75000% with 27 lines in your changes missing coverage. Please review.

Project coverage is 91.15%. Comparing base (0e01be0) to head (c960f58).

Files with missing lines Patch % Lines
src/chronify/time_series_mapper_datetime.py 90.16% 12 Missing ⚠️
src/chronify/time_utils.py 60.00% 6 Missing ⚠️
tests/test_store.py 90.90% 5 Missing ⚠️
src/chronify/time_series_mapper_base.py 89.28% 3 Missing ⚠️
src/chronify/time_series_mapper_index_time.py 50.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #49      +/-   ##
==========================================
- Coverage   91.24%   91.15%   -0.10%     
==========================================
  Files          44       44              
  Lines        3335     3549     +214     
==========================================
+ Hits         3043     3235     +192     
- Misses        292      314      +22     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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.

4 participants