-
Notifications
You must be signed in to change notification settings - Fork 3
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
Conversation
src/pyramid_view.cpp
Outdated
ImageInfo whole_image; | ||
|
||
if (img_count != 0) { | ||
//std::list<tensorstore::WriteFutures> pending_writes; |
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.
Can this commented out code be removed?
src/pyramid_view.cpp
Outdated
if (v == VisType::NG_Zarr | v == VisType::Viv) { | ||
return GetZarrSpecToRead(base_zarr_path); | ||
} else { // this will probably never happen | ||
return tensorstore::Spec(); |
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.
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?
src/pyramid_view.cpp
Outdated
} 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(); |
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.
Same question as other tensorstore::Spec() call
PyramidView
class and corresponding Python bindingutilities.cpp