-
Notifications
You must be signed in to change notification settings - Fork 9
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
Infinite pixel sizes #14
Conversation
A similar commit should be done in the Python code. (screenshot is web) |
Code change looks sensible. |
Glad I got in while eel's still running. 😃 |
cc @will-moore |
Unfortunately I have no idea where the respective code in the Python Blitzgateway is, which has to be adjusted. |
Merging for 5.5.3. Plan is to get integration tests green before releasing. Note: in a future round of refactorings, I could imagine wrapping this logic into a helper method. |
Similar opinion on this to ome/omero-marshal#60. This applies to all floating point values across the entire model, is not something I think belongs in the gateway, and is a breaking change that should not be done in a patch release. I don't think making a single client work is justification for a fundamental API behavioural change. The fact that the original code ignored marshaling all cases where |
A pixel size with unit 'pixel' doesn't really make sense. |
I'll revert the PR and also remove catching the case where the pixel size unit is 'pixel'. I don't know for sure any more now, but I think there was reason for catching this (could imagine that |
I added the stack trace to the description of this PR. Looking at it, I think that the conversions are disallowed but we might need to introduce |
I agree but neither does light year or parsec either and we are not making decisions for users on the validity of using those units. |
Prevents that
Length
objects with infinite or nan value are returned fromgetPixelSize
methods.This can cause problems downstream (e.g in Insight).
See https://www.openmicroscopy.org/qa2/qa/feedback/27688/ or https://trello.com/c/X5egtRjc/3-iviewer-fails-to-load-images-with-pixel-size-nan-or-inf
Test: Expand the dataset newproj1/newds1 as user-3 on eel (will crash Insight without the PR).
Original stack trace: