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 decorator for skipping nodes without dimension #101

Merged
merged 3 commits into from
Nov 8, 2024

Conversation

melonora
Copy link
Collaborator

@melonora melonora commented Nov 8, 2024

With the adaptation to the latest version of xarray there is the problem that many of the methods that used to be available for DataTree are not anymore, e.g. transpose. There is currently no direct way to implement this behaviour. There is the method map_over_datasets but this requires each node to have dimensions which in the case of MultiscaleSpatialImage is not the case.

This PR adds a decorator that allows map_over_datasets to skip those nodes not containing any dimension allowing image processing functions to be applied that do make use of the dimensions.

@melonora melonora merged commit c47c68c into spatial-image:main Nov 8, 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.

1 participant