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

Add operations to multiscale spatial image #103

Merged
merged 9 commits into from
Nov 20, 2024

Conversation

melonora
Copy link
Collaborator

With the latest xarray some of the operations like transpose were not available anymore on the DataTree level yet they are common operations within imaging.

This PR adds a couple of these operations and makes them available through the msi accessor.

README.md Outdated Show resolved Hide resolved

```python
multiscale = multiscale.msi.transpose("y", "x", "c")
```
Copy link
Contributor

Choose a reason for hiding this comment

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

lovely

README.md Outdated Show resolved Hide resolved
README.md Outdated
```

Other methods implemented this way are `reindex`, equivalent to the
`xr.DataArray` reindex method and `assign_coords`, equivalent to `xr.Dataset`
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we link to the Xarray reindex and the assign_coords documentation?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

jup, done

multiscale_spatial_image/multiscale_spatial_image.py Outdated Show resolved Hide resolved
melonora and others added 4 commits November 20, 2024 12:49
Co-authored-by: Matt McCormick <matt@mmmccormick.com>
Co-authored-by: Matt McCormick <matt@mmmccormick.com>
Co-authored-by: Matt McCormick <matt@mmmccormick.com>
@melonora melonora merged commit 7254a37 into spatial-image:main Nov 20, 2024
10 checks passed
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