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

Error loading labels and images #11

Open
2 tasks done
MikeLippincott opened this issue Jan 25, 2025 · 0 comments
Open
2 tasks done

Error loading labels and images #11

MikeLippincott opened this issue Jan 25, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@MikeLippincott
Copy link
Member

Is this a duplicate of an existing idea for this project?

  • I found no existing issues covering this topic.

What is your idea?

When calling nviz.image.tiff_to_ometiff I get the following error:

ValueError                                Traceback (most recent call last)
Cell In[32], [line 32](vscode-notebook-cell:?execution_count=32&line=32)
     [30](vscode-notebook-cell:?execution_count=32&line=30) if labels_data:
     [31](vscode-notebook-cell:?execution_count=32&line=31)     labels_data = np.stack(labels_data, axis=0)
---> [32](vscode-notebook-cell:?execution_count=32&line=32)     combined_data = np.concatenate((images_data, labels_data), axis=0)
     [33](vscode-notebook-cell:?execution_count=32&line=33)     combined_channel_names = channel_names + label_names
     [34](vscode-notebook-cell:?execution_count=32&line=34) else:

ValueError: all the input arrays must have same number of dimensions, but the array at index 0 has 5 dimension(s) and the array at index 1 has 4 dimension(s)

Upon diving in, I found that the raw images were in the format of (c,z,y,t) and the label images were in the format of zyt

Would you like to work on a solution for this?

  • Yes I am willing to submit a PR for this!
@d33bs d33bs added the bug Something isn't working label Jan 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants