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

Add TSWriter #8

Merged
merged 22 commits into from
Jun 26, 2024
Merged

Add TSWriter #8

merged 22 commits into from
Jun 26, 2024

Conversation

JesseMckinzie
Copy link
Member

  • Add tensorstore zarr writer

@@ -18,4 +18,10 @@ uint16_t GetDataTypeCode (std::string_view type_name);
std::string GetUTCString();
std::string GetOmeXml(const std::string& file_path);
std::tuple<std::optional<int>, std::optional<int>, std::optional<int>>ParseMultiscaleMetadata(const std::string& axes_list, int len);
tensorstore::DataType GetTensorStoreDataType(const std::string& type_str);
uint16_t GetDataTypeCode (std::string_view type_name);
Copy link
Member

Choose a reason for hiding this comment

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

duplicate?

Comment on lines +21 to +26
std::string dtype_str_converted = (dtype_str == "float64") ? "double" : dtype_str; // change float64 numpy type to double

auto dtype = GetTensorStoreDataType(dtype_str_converted);

auto dtype_base = ChooseBaseDType(dtype).value().encoded_dtype;

Copy link
Member

@sameeul sameeul Jun 25, 2024

Choose a reason for hiding this comment

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

I don't think you need this. You can just pass in dtype_str to GetZarrSpecToWrite

@sameeul sameeul merged commit 0b9d111 into PolusAI:main Jun 26, 2024
17 checks passed
@sameeul sameeul mentioned this pull request Jun 26, 2024
sameeul added a commit that referenced this pull request Jun 27, 2024
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