jni / zarpaint

Paint segmentations directly to on-disk/remote zarr arrays
BSD 3-Clause "New" or "Revised" License
14 stars 8 forks source link

Expose open_tensorstore through zarpaint GUI #43

Open GenevieveBuckley opened 1 year ago

GenevieveBuckley commented 1 year ago

I think the open_tensorstore function should be exposed to the user via the zarpaint GUI. You can call this function directly from your code, but that makes it more difficult than it should be to open an existing set of labels and edit them with zarpaint.

It's not clear to me whether you're supposed to be able to do this already through the "Create new labels layer" function in zarpaint, but the file widget picker won't allow you to select directories, which is a problem because the operating system treats the top level of any zarr dataset as a directory.

It's possible the fix for this might be as easy as changing the file mode to "d" in the magicgui call, but I haven't tried that out yet.

jni commented 1 year ago

It's possible the fix for this might be as easy as changing the file mode to "d" in the magicgui call, but I haven't tried that out yet.

I think that's basically right, and then we can rename "create new labels layer" to "open/create new labels layer".