Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/datasource/zarr/ome.ts
Original file line number Diff line number Diff line change
Expand Up @@ -729,7 +729,7 @@ export function parseOmeMetadata(
): OmeMetadata | undefined {
const ome = attrs.ome;
const multiscales = ome == undefined ? attrs.multiscales : ome.multiscales; // >0.4
const omero = attrs.omero;
const omero = ome == undefined ? attrs.omero : ome.omero; // >0.4
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks @krokicki

I think we can clean this section now by using something like

  const {ome} = attrs;
  const metadata = attrs.ome ?? attrs; // >0.4
  const { multiscales, omero } = metadata;

Unfortunately version is not as simple


if (!Array.isArray(multiscales)) return undefined;
const errors: string[] = [];
Expand Down