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

Update time_utils.py and add tests #69

Merged
merged 1 commit into from
Jul 15, 2024

Conversation

stellema
Copy link
Member

Update get_agg_dates to work with multi-dim data, remove depreciated loffset parameter from resample and add unit test. Speed up min_tsteps option in temporal_aggregation by reducing the values loaded to 2 and removing the xr.where search. This assumes only the first and last aggregation period needs to be checked and they will be consistent across all other dimensions (mainly used to ensure full time periods are aggregated when target_freq != YE-DEC). Add unit tests for min_tsteps option in temporal_aggregation. Fix mask.values = error in select_time_period.

Update get_agg_dates to work with multi-dim data, remove depreciated loffset parameter from resample and add unit test. Speed up min_tsteps option in temporal_aggregation by reducing the values loaded to 2 and removing the xr.where search. This assumes only the first and last aggregation period needs to be checked and they will be consistent across all other dimensions (mainly used to ensure full time periods are aggregated when target_freq != YE-DEC). Add unit tests for min_tsteps option in temporal_aggregation. Fix mask.values = error in select_time_period.
@stellema stellema merged commit f83dcf5 into AusClimateService:master Jul 15, 2024
4 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.

1 participant