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

Support xarray concat, including broadcasting #34

Merged
merged 5 commits into from
Mar 15, 2024
Merged

Conversation

TomNicholas
Copy link
Member

@TomNicholas TomNicholas commented Mar 15, 2024

Closes part of #2.

To get this to work I had to add broadcasting, to cover times when xarray wants to insert a length-1 dimension. I did not appreciate until now that actually we can go further and fully support broadcasting with ManifestArray objects! This PR does that.

@TomNicholas TomNicholas mentioned this pull request Mar 15, 2024
15 tasks
@TomNicholas TomNicholas merged commit e147057 into main Mar 15, 2024
@TomNicholas TomNicholas deleted the xarray_concat branch March 15, 2024 00:19
"""
Broadcasts an array to a specified shape, by either manipulating chunk keys or copying chunk manifest entries.
"""
print(f"requested broadcasting array from shape {x.shape} to shape {shape}")
Copy link
Collaborator

Choose a reason for hiding this comment

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

Replace with log statement?

Copy link
Member Author

Choose a reason for hiding this comment

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

Oops thanks for catching that! Removed in c0ef78c

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