You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Y and X resolution gets rounded down from 9.8 to 9 as input_resolution and output_resolution gets cast to integers both in the constructor of DataSplitGenerator (it would also be cast to int in the downstream funlib Coordinate class).
This rounding down is immediately leading to a desync of ROIs, visible in the neuroglancer preview from the datasplit.
To fix this for now, I've just lied to datasplit and told it that the resolution is 25, 10, 10 instead of 25, 9.8, 9.8, and also altered by raw data to reflect that resolution change. I'm not sure what consequences lying about the resolution will have but everything else is working now.
Is there a reason resolution has to be cast to an integer? Or -- if lying about resolution is ok, then there should be an error or warning in DataSplitGenerator for the user to ensure that their data resolution is in integers.
To Reproduce
Take any dataset with non-integer resolution and feed it into DataSplitGenerator, then preview in neuroglancer. I can provide this dataset if requested
Expected behavior
Non-integer resolutions should be supported - or - the datasplit generator function should throw and error and force the user to modify data to have integer resolutions
Versions
OS: Ubuntu 22.04 x64
Python: 3.10.14
Version: dacapo: 3430d6
The text was updated successfully, but these errors were encountered:
Describe the bug
I have an SBEM dataset collected at a voxel size of 9.8 x 9.8 x 25 nm. When I create the datasplit with:
The Y and X resolution gets rounded down from 9.8 to 9 as
input_resolution
andoutput_resolution
gets cast to integers both in the constructor ofDataSplitGenerator
(it would also be cast to int in the downstream funlibCoordinate
class).This rounding down is immediately leading to a desync of ROIs, visible in the neuroglancer preview from the datasplit.
To fix this for now, I've just lied to datasplit and told it that the resolution is
25, 10, 10
instead of25, 9.8, 9.8
, and also altered by raw data to reflect that resolution change. I'm not sure what consequences lying about the resolution will have but everything else is working now.Is there a reason resolution has to be cast to an integer? Or -- if lying about resolution is ok, then there should be an error or warning in
DataSplitGenerator
for the user to ensure that their data resolution is in integers.To Reproduce
Take any dataset with non-integer resolution and feed it into
DataSplitGenerator
, then preview in neuroglancer. I can provide this dataset if requestedExpected behavior
Non-integer resolutions should be supported - or - the datasplit generator function should throw and error and force the user to modify data to have integer resolutions
Versions
The text was updated successfully, but these errors were encountered: