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

fix incorrect time reconstruction #188

Merged
merged 10 commits into from May 3, 2023
Merged

fix incorrect time reconstruction #188

merged 10 commits into from May 3, 2023

Conversation

RondeauG
Copy link
Contributor

@RondeauG RondeauG commented Apr 19, 2023

Pull Request Checklist:

  • This PR addresses an already opened issue (for bug fixes / features)
    • This PR fixes #xyz
  • (If applicable) Documentation has been added / updated (for bug fixes / features)
  • This PR does not seem to break the templates.
  • HISTORY.rst has been updated (with summary of main changes)
    • Link to issue (:issue:number) and pull request (:pull:number) has been added

What kind of change does this PR introduce?

  • Bugfix, especially for compute_deltas. The line deltas = deltas.reindex_like(ds) would create all NaN values if ds was using a CFTimeIndex (such as a 'noleap' calendar) instead of a pandas DatetimeIndex. The same wasn't true for climatological_mean since we don't reindex, but we might as well use the same indexes as the input dataset.

Does this PR introduce a breaking change?

  • No

Other information:

@RondeauG RondeauG requested a review from aulemahal April 19, 2023 15:47
xscen/aggregate.py Outdated Show resolved Hide resolved
xscen/aggregate.py Outdated Show resolved Hide resolved
Base automatically changed from fix-99-101 to main April 19, 2023 16:57
RondeauG and others added 5 commits April 19, 2023 12:58
Co-authored-by: Pascal Bourgault <bourgault.pascal@ouranos.ca>
Co-authored-by: Pascal Bourgault <bourgault.pascal@ouranos.ca>
@RondeauG RondeauG merged commit b2b705b into main May 3, 2023
6 checks passed
@RondeauG RondeauG deleted the fix-timeagg branch May 3, 2023 17:18
@RondeauG RondeauG mentioned this pull request May 4, 2023
5 tasks
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.

None yet

2 participants