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

Handle input with wrong dimensions more gracefully #128

Open
alessandrofelder opened this issue Jul 19, 2023 · 1 comment
Open

Handle input with wrong dimensions more gracefully #128

alessandrofelder opened this issue Jul 19, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@alessandrofelder
Copy link
Member

alessandrofelder commented Jul 19, 2023

We should provide a better message to users passing e.g. a stack of RGB images to brainreg, see e.g. https://forum.image.sc/t/brainreg-error-when-checking-orientation-value-error-axes-dont-match-array/83794/3

@adamltyson
Copy link
Member

I guess we shoud add two checks:

  • If dimensionality >3 OR
  • dimensionality =3 and one dimension is length 2-N(6?)

then raise an error explaining what the input data should be.

I guess we could also provide functionality within the napari plugin to process one channel of a multichannel image.

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
Status: Backlog
Development

No branches or pull requests

2 participants