Skip to content

Retain cached data array values when changing dtype#359

Merged
davidhassell merged 3 commits intoNCAS-CMS:mainfrom
davidhassell:cache-dtype
Oct 9, 2025
Merged

Retain cached data array values when changing dtype#359
davidhassell merged 3 commits intoNCAS-CMS:mainfrom
davidhassell:cache-dtype

Conversation

@davidhassell
Copy link
Copy Markdown
Contributor

Fixes #358

@davidhassell davidhassell added this to the NEXTVERSION milestone Oct 6, 2025
Copy link
Copy Markdown
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.

Perfect, please merge.

@davidhassell
Copy link
Copy Markdown
Contributor Author

Hi @sadielbartholomew, just had thought: e6f2b96

Instead of checking for masked arrays, we can use the much better asanyarray

Copy link
Copy Markdown
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.

Good idea with the update - did a quick sanity check on the new commit. Still good to merge but with bonus points :)

@davidhassell davidhassell merged commit 5831f85 into NCAS-CMS:main Oct 9, 2025
@davidhassell davidhassell deleted the cache-dtype branch October 9, 2025 11:53
@davidhassell davidhassell added the enhancement New feature or request label Oct 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Retain cached data array values when changing dtype

2 participants