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

Create a layer for each channel of NGFF-Zarr datasets #6609

Merged
merged 14 commits into from
Nov 10, 2022
Merged

Conversation

frcroth
Copy link
Member

@frcroth frcroth commented Nov 4, 2022

URL of deployed dev instance (used for testing):

Steps to test:

Not tested: Importing zarr datasets with only one channel. This should result in only one layer.

Issues:


(Please delete unneeded items, merge only when none are left open)

@frcroth frcroth changed the title WIP: Create layers for channels Create layers for channels Nov 9, 2022
@frcroth frcroth requested a review from fm3 November 9, 2022 09:30
@frcroth frcroth marked this pull request as ready for review November 9, 2022 09:31
@fm3 fm3 changed the title Create layers for channels Create a layer for each channel of NGFF-Zarr datasets Nov 9, 2022
Copy link
Member

@fm3 fm3 left a comment

Choose a reason for hiding this comment

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

Looking good, and works for me! Please see my two small refactoring suggestions.

Also: could you add the passing of the channelIndex also for the N5Array (at N5BucketProvider)? The N5 explorer does not currently support inferring channel metadata (which is fine for now), but if added manually to the datasource-properties.json, this should also work.

app/models/binary/explore/NgffExplorer.scala Outdated Show resolved Hide resolved
app/models/binary/explore/NgffExplorer.scala Outdated Show resolved Hide resolved
@frcroth
Copy link
Member Author

frcroth commented Nov 10, 2022

Also: could you add the passing of the channelIndex also for the N5Array (at N5BucketProvider)? The N5 explorer does not currently support inferring channel metadata (which is fine for now), but if added manually to the datasource-properties.json, this should also work.

I don't exactly know what you intend for the N5Array. Should the N5Array have another property channelIndex?

@fm3
Copy link
Member

fm3 commented Nov 10, 2022

I don't exactly know what you intend for the N5Array. Should the N5Array have another property channelIndex?

Yes, and pass it to its superclass (that should be enough)

@frcroth frcroth requested a review from fm3 November 10, 2022 09:24
@fm3
Copy link
Member

fm3 commented Nov 10, 2022

…sorry, should have been more clear 😇 The N5BucketProvider calls N5Array.open, and there the channelIndex should be passed through, analogous to what happens in the ZarrBucketProvider and ZarrArray.open

Copy link
Member

@fm3 fm3 left a comment

Choose a reason for hiding this comment

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

🎉

@frcroth frcroth merged commit 2fb50d6 into master Nov 10, 2022
@frcroth frcroth deleted the channelIndex branch November 10, 2022 10:31
hotzenklotz added a commit that referenced this pull request Nov 11, 2022
…cing

* 'master' of github.com:scalableminds/webknossos:
  Fix parsing failure during import of ngff zarr datasets with translation transforms (#6621)
  Fix rerender after each layer name keypress in dataset import view (#6628)
  Create a layer for each channel of NGFF-Zarr datasets (#6609)
  Fix screenshot tests (#6623)
  Fix importing a dataset from disk (#6615)
  Allow deleting annotation layers (#6593)
  Rephrased Error Messages (#6616)
normanrz added a commit to normanrz/ome-ngff-tools that referenced this pull request Nov 11, 2022
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.

Add ChannelIndex to MagLocator, adapt Zarr Import for Multichannel datasets
2 participants