Skip to content

Conversation

@davidhassell
Copy link
Collaborator

Hi Sadie, I think deprecating __hash__ is the good thing to do because it was never used in the library code; it's exact functionality is still in cf.hash_array; and it was never a good hash of a Data object, anyway, as it it didn't include units, cyclic axes, etc.

@davidhassell davidhassell added the dask Relating to the use of Dask label Mar 30, 2022
@davidhassell davidhassell changed the title dask-hash dask: Data.__hash__ Mar 30, 2022
Copy link
Member

@sadielbartholomew sadielbartholomew left a comment

Choose a reason for hiding this comment

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

Minor comments raised in-line for your consideration pre-merge, but this looks solid overall and I agree that deprecating __hash__ seems sensible given your justifications.

davidhassell and others added 5 commits April 1, 2022 08:31
Co-authored-by: Sadie L. Bartholomew <sadie.bartholomew@ncas.ac.uk>
Co-authored-by: Sadie L. Bartholomew <sadie.bartholomew@ncas.ac.uk>
Co-authored-by: Sadie L. Bartholomew <sadie.bartholomew@ncas.ac.uk>
Co-authored-by: Sadie L. Bartholomew <sadie.bartholomew@ncas.ac.uk>
@davidhassell davidhassell merged commit 906e437 into NCAS-CMS:lama-to-dask Apr 1, 2022
@davidhassell davidhassell deleted the dask-hash branch November 15, 2022 09:22
@davidhassell davidhassell added this to the 3.14.0 milestone Nov 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dask Relating to the use of Dask

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants