Skip to content

Fix MSv2BroadcastArray pickling error#147

Merged
sjperkins merged 6 commits intomainfrom
fix-broadcast-msv2-array-pickling-error
Mar 6, 2026
Merged

Fix MSv2BroadcastArray pickling error#147
sjperkins merged 6 commits intomainfrom
fix-broadcast-msv2-array-pickling-error

Conversation

@sjperkins
Copy link
Member

@sjperkins sjperkins commented Mar 6, 2026

The MSv2Array -> MainMSv2Array -> BroadcastMSv2Array inheritance hierarchy resulted in an error when pickling a BroadcastMSv2Array. The related PR

fixes the proximal causes but the root cause is the shadowing of MSv2Array.dtype by the BroadcastMSv2Array.dtype property. This PR corrects the use of the inheritance hierarchy and adds a test case testing that the returned datatree is pickleable.

Thanks for contributing to xarray-ms.

We would appreciate it if you could add:

  • Test Cases covering your PR.
  • Documentation.
  • A Changelog entry in doc/source/changelog.rst.

📚 Documentation preview 📚: https://xarray-ms--147.org.readthedocs.build/en/147/

@sjperkins sjperkins merged commit c109126 into main Mar 6, 2026
6 checks passed
@sjperkins sjperkins deleted the fix-broadcast-msv2-array-pickling-error branch March 6, 2026 09:06
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