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 dynamic pyramid generation support #14

Merged
merged 16 commits into from
Jun 24, 2024

Conversation

sameeul
Copy link
Member

@sameeul sameeul commented Jun 17, 2024

  • Added PyramidView class and corresponding Python binding
  • A bunch of previous member functions are now free functions and moved to utilities.cpp

@sameeul sameeul requested a review from JesseMckinzie June 18, 2024 16:46
ImageInfo whole_image;

if (img_count != 0) {
//std::list<tensorstore::WriteFutures> pending_writes;
Copy link
Member

Choose a reason for hiding this comment

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

Can this commented out code be removed?

if (v == VisType::NG_Zarr | v == VisType::Viv) {
return GetZarrSpecToRead(base_zarr_path);
} else { // this will probably never happen
return tensorstore::Spec();
Copy link
Member

Choose a reason for hiding this comment

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

Could there be any dangers of returning a default Spec? The comment on the tensorstore code says "Constructs an invalid specification". Maybe just log a warning if this could cause issues later on in the code path?

} else if (v == VisType::Viv) {
return GetZarrSpecToWrite(output_path + "/0", new_image_shape, chunk_shape, ChooseBaseDType(base_store.dtype()).value().encoded_dtype);
} else {
return tensorstore::Spec();
Copy link
Member

Choose a reason for hiding this comment

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

Same question as other tensorstore::Spec() call

@sameeul sameeul merged commit 1d044cc into PolusAI:main Jun 24, 2024
15 checks passed
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