Skip to content

Conversation

@spencerkclark
Copy link

@aulemahal I think this should resolve the dask compatibility issues in _decimal_year. I'm not sure how to make your original approach work for versions of NumPy < 2—it seems like it should if it weren't for what looks like an old upstream issue—but this at least gets the rollback approach working.

@spencerkclark
Copy link
Author

Oh sorry, this is actually going to end up with the same problem...since in the case of standard datetimes _rollback returns a datetime64[ns] array similar to _yearstart_np. There still may be a way to work around this with either approach. I'll go back to the drawing board.

Copy link
Collaborator

@aulemahal aulemahal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot @spencerkclark !

@aulemahal aulemahal merged commit 354bf79 into Ouranosinc:add-dt-features Sep 9, 2024
@spencerkclark spencerkclark deleted the fix-dask/add-dt-features branch September 11, 2024 12:16
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.

2 participants