-
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
Prevent 'negative' buckets from being created #7124
Conversation
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.
Backend LGTM
@philippotto Could you explain the fix? As far as I can see, the tracing's bounding box being negative caused "negative" buckets to be created and sent to the server. How did the tracing's bounding box become negative and shouldn't this be prevented, too? |
The DataCube instantiates the BoundingBox class and stores that in
Thus, if no volume task existed, min was left at its default of -Infinity. To fix this, I changed the code to always intersect with min=0,0,0 and max=this.upperBoundary. I hope, this makes sense. Otherwise, let's call about this 🤙 =) |
Thank you, that makes sense 👍 Does it make sense to use the lower boundary of the dataset instead, then? Otherwise, the behavior is inconsistent with the upper boundary being strict and the lower boundary always being at [0, 0, 0]. |
Good point! I also refactored the code a bit so that we have one bbox type less. please have another look :) |
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 cleanup, LGTM! 👍
…esign-right-sidebar * 'master' of github.com:scalableminds/webknossos: Create bounding box by dragging with box tool (#7118) Prevent 'negative' buckets from being created (#7124) Lazy load onnx and canvas2html module (#7121) Disable editing of super voxel skeletons in skeleton mode (#7086) add missing evolution to migration guide (#7126) Change sttp backend to HttpURLConnectionBackend (#7125) Implement Zarr v3 and sharding codec (#7079) Fix decompression of garbage data after valid gzip data causing decompression to fail (#7119) When scanning volume buckets, skip those with unparseable key (#7115)
URL of deployed dev instance (used for testing):
Steps to test:
Issues:
(Please delete unneeded items, merge only when none are left open)