Skip to content

Out of Bounds Error for Edge Annotations #47

@den-sq

Description

@den-sq

When the slice created from an annotation extends beyond the edge, an out-of-bounds error can occur:

  File "/home/chenglab/miniconda3/envs/oura/lib/python3.12/site-packages/cloudvolume/lib.py", line 499, in create
    raise OutOfBoundsError(
  File "/home/chenglab/our_gui/python/ouroboros/helpers/volume_cache.py", line 196, in create_processing_data
    self.download_volume(volume_index, bounding_box, parallel=parallel)
  File "/home/chenglab/our_gui/python/ouroboros/helpers/volume_cache.py", line 167, in download_volume
    volume_data[:] = self.cv.cv.download(bbox, mip=self.mip, parallel=parallel)
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/chenglab/miniconda3/envs/oura/lib/python3.12/site-packages/cloudvolume/frontends/precomputed.py", line 797, in download
    bbox = Bbox.create(
           ^^^^^^^^^^^^
exception calling callback for <Future at 0x7551be121b20 state=finished raised ValueError>
concurrent.futures.process._RemoteTraceback:

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions