Skip to content

Conversation

@thewtex
Copy link
Collaborator

@thewtex thewtex commented Nov 29, 2024

  • ENH: Support reading and validating OME-Zarr v0.1
  • ENH: Support reading and validating OME-Zarr v0.2
  • ENH: Support reading and validating OME-Zarr v0.3
  • ENH: Update test data hashes

@thewtex thewtex requested a review from Copilot November 29, 2024 21:44
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot reviewed 4 out of 21 changed files in this pull request and generated 1 suggestion.

Files not reviewed (17)
  • ngff_zarr/spec/0.1/copyright.include: Language not supported
  • ngff_zarr/spec/0.1/schemas/image.schema: Language not supported
  • ngff_zarr/spec/0.1/schemas/plate.schema: Language not supported
  • ngff_zarr/spec/0.1/schemas/strict_image.schema: Language not supported
  • ngff_zarr/spec/0.1/schemas/well.schema: Language not supported
  • ngff_zarr/spec/0.2/copyright.include: Language not supported
  • ngff_zarr/spec/0.2/schemas/image.schema: Language not supported
  • ngff_zarr/spec/0.2/schemas/plate.schema: Language not supported
  • ngff_zarr/spec/0.2/schemas/well.schema: Language not supported
  • ngff_zarr/spec/0.3/copyright.include: Language not supported
  • ngff_zarr/spec/0.3/schemas/image.schema: Language not supported
  • ngff_zarr/spec/0.3/schemas/jsonld/context.json: Language not supported
  • ngff_zarr/spec/0.3/schemas/jsonld/frame.json: Language not supported
  • ngff_zarr/spec/0.3/schemas/jsonld/shacl.ttl: Language not supported
  • ngff_zarr/spec/0.3/schemas/plate.schema: Language not supported
  • ngff_zarr/spec/0.3/schemas/strict_image.schema: Language not supported
  • ngff_zarr/spec/0.3/schemas/well.schema: Language not supported
Comments skipped due to low confidence (1)

ngff_zarr/from_ngff_zarr.py:78

  • The line 'dims = [a["name"] if "name" in a else a for a in metadata["axes"]]' could lead to inconsistent naming if the axes are not uniformly structured. Consider ensuring that all axes have a 'name' attribute.
dims = [a["name"] if "name" in a else a for a in metadata["axes"]]

"y": "space",
"x": "space",
}
axes = [Axis(name=axis, type=type_dict[axis]) for axis in metadata["axes"]]
Copy link

Copilot AI Nov 29, 2024

Choose a reason for hiding this comment

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

The line 'axes = [Axis(name=axis, type=type_dict[axis]) for axis in metadata["axes"]]' assumes that the keys will always be one of "t", "c", "z", "y", or "x". Consider adding a default case or error handling for unexpected keys.

Suggested change
axes = [Axis(name=axis, type=type_dict[axis]) for axis in metadata["axes"]]
axes = [Axis(name=axis, type=type_dict.get(axis, 'unknown')) for axis in metadata['axes']]

Copilot uses AI. Check for mistakes.
@thewtex thewtex merged commit 3f8b3fd into main Nov 29, 2024
36 checks passed
@thewtex thewtex deleted the version-0.1-to-0.3 branch November 29, 2024 22:07
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.

2 participants