-
Notifications
You must be signed in to change notification settings - Fork 7
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
adding conversion to tensorstore #242
base: main
Are you sure you want to change the base?
Conversation
Seems like the new pydantic release is breaking. |
also removed non-standard axis
@edyoshikun Did you cherry-pick the commit from main? The history is now weird. I would rebase it manually. |
except ValueError as e: | ||
print(f"Error opening Zarr store: {e}") | ||
raise |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's the purpose of this?
"path": str((Path(self._store.path) / self.path).resolve()), | ||
}, | ||
"metadata": metadata, | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There could be a **ts_kwargs
here to allow passing in additional configuration, for example a global cache context.
) | ||
def test_ome_zarr_to_tensorstore(channels_and_random_5d, arr_name): | ||
"""Test `iohub.ngff.Position.data` to tensortore""" | ||
pytest.importorskip("tensorstore") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe add tensorstore to dev requirements and not skip this?
@@ -344,7 +345,27 @@ def downscale(self): | |||
raise NotImplementedError | |||
|
|||
def tensorstore(self): | |||
raise NotImplementedError | |||
import tensorstore as ts |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needs a docstring.
with _temp_ome_zarr(random_5d, channel_names, "0") as dataset: | ||
assert_array_almost_equal(dataset.data.numpy(), random_5d) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this redundant with another test case?
This PR makes a zarray into tensorstore object