-
Notifications
You must be signed in to change notification settings - Fork 4
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
Do not convert scale metadata from micromanager #419
Conversation
Codecov Report
@@ Coverage Diff @@
## overlay-on-top #419 +/- ##
==============================================
Coverage 8.31% 8.31%
==============================================
Files 26 26
Lines 4523 4523
==============================================
Hits 376 376
Misses 4147 4147
|
Preview page for your plugin is ready here: |
This from #418 (comment) seems nicer to me. The old dataset problem can be solved by having a button to set layer scale to identity. |
Thanks for bumping. I've given this some more thought, and I will add a third option:
Option 3 will require that all Also, if we choose 1 or 3 I agree that a having a |
Is it reasonably easy to compare those 2 scales and raise a warning if they don't match? It might even serve as a reminder that the user forgot to set those GUI values correctly. |
I like this idea. I'll try out option 3 with warnings early next week. I'll leave this open for now in case that fails. |
Closing this...#426 merged instead. |
Possible fix for #418.
iohub convert
now passes scale metadata by default, which means that micromanager's pixel sizes get saved into the scale metadata.This means that
recOrder
now has two sources of truth for it's scale metadata: the scale metadata of the input zarr and the scale metadata that the user enters in the "pixel size" and "magnification" textboxes. This causes problems because theome-zarr
reader treats the zarr's scale metadata as truth, so when you try to compare data from the GUI to data from a file the scale is incorrect: see #418.I can see two ways to solve this:
Treat the zarr scale metadata as truth. This would mean removing the "pixel size" and "magnification" fields from the recOrder GUI, removing the
yx_pixel_size
field fromrecOrder
CLI, and forcing allrecOrder==0.4.0
sessions to set the correct pixel size in the micromanager's pixel size calibration tool. This is a reasonably large change.Continue to treat the recOrder GUI as truth and do not pass scale metadata through
iohub convert
. This is the one-line fix implemented here. This means that scales will be [1,1,1,1,1] throughout recOrder sessions. This means that you can easily compare everything, so it "fixes" [BUG] GUI-generated layers are incorrectly scaled #418.I am leaning towards solution 2 for
recOrder==0.4.0
, and we can use solution 1 forrecOrder==1.0.0
.Note:
recorder reconstruct
will continue to pass its input metadata through to the output, somantis
can continue to userecorder reconstruct
.