-
Notifications
You must be signed in to change notification settings - Fork 24
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 frontend for zarr import #6383
Conversation
782609b
to
57d4f40
Compare
…some Toast UX idea
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.
cool stuff :) I left some feedback, but nothing major.
As discussed I pushed two changes to the base branch zarr-import
Feel free to merge that base branch into yours and adapt the front-end to the single-string report :) |
Some notes, can be a follow-up:
|
Co-authored-by: Norman Rzepka <[email protected]>
Co-authored-by: Norman Rzepka <[email protected]>
I opened follow-up #6409 for making the datasource representation and editing prettier. The other suggestions I've adapted like so: |
Note that the backend currently does not support anonymous s3 access (compare #6401 ) – so maybe that should be disabled in the front-end too until that follow-up is solved |
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.
nice 👍 code looks good and it works for me well.
* [WIP] import remote zarr datasets * read zarr header * make (rudimentary) datasource * WIP omeNgff import * detect axis order, voxel size and mag from omengff * add assertions, return Foxes * allow multiple layers in one ngff header, return all mags * pass name + voxel size, respect space units * pass credentials to mags, make layer names unique, add report * fix bbox detection, debug chunk reading errors * relax axis order assertion * allow inputting uris directly pointing to .zattrs,.zarray,.zgroup. experiment with array order * ZYX * error messages for everything that can go wrong * f2 * lint * Store AxisOrder with Mag, fix NonLocalReturn, fix fortran-order flip * fix no-partial-copying-needed case, fix unit axes, read element class independent of endianness * clean up * match error * add put route for datasource * add provider for http (not https) * increase https file system provider timeouts * pretty * add explaining comment for nested list * makedirs for new datasource * send correct error * clean up chunk loading, catch exceptions * send report as single string, catch exception for invalid uris * Detect Segmentation Layers Heuristic, Assert valid element class * include channel in AxisOrder for forward-compatibility * allow dots in dataset names (if they are not at first or last position) * Add frontend for zarr import (#6383) * basic zarr import * merge data layers of multiple sources * use credentials in exploreRemote improve frontend * [suggestion] minor wording improvement while totally not stealing awesome Toast UX idea * add rudimentary error for wrong credentials * add referrer modal onAdded * remove multiline URL exploration until UX concept is discussed * return and display exploration report * updated (unreleased) changelog * check voxel sizes and potentially warn when merging * give unique layer names to duplicates * ensure largest segment id exists * Edit s3 credentials label Co-authored-by: Norman Rzepka <[email protected]> * add radio buttons for authentication * make s3 always require credentials Co-authored-by: Florian M <[email protected]> Co-authored-by: Norman Rzepka <[email protected]> * update changelog pr number Co-authored-by: Jonathan Striebel <[email protected]> Co-authored-by: Arthur Hilbert <[email protected]> Co-authored-by: Norman Rzepka <[email protected]> Co-authored-by: Jonathan Striebel <[email protected]>
URL of deployed dev instance (used for testing):
Steps to test:
add and import zarr data:
https://data-humerus.webknossos.org/data/zarr/scalable_minds/l4dense_motta_et_al_demo/segmentation
https://data-humerus.webknossos.org/data/zarr/scalable_minds/l4dense_motta_et_al_demo/color
merge different data layers together
labels in the credentials fields should change according to the protocol
Open:
Issues:
(Please delete unneeded items, merge only when none are left open)