-
Notifications
You must be signed in to change notification settings - Fork 18
Open
Description
Since "valid" fit would be missing at most 1 write roi block whose read roi might go out of the total roi, I would expect that an "overhang" fit would add at most 1 block on each axis. This is not the case though since a valid fit checks:
total_roi.contains(b.read_roi), and the "overhang" checks total_roi.contains(b.write_roi.get_begin()).
I've added an example to the documentation:
"valid": Skip blocks that would lie outside of ``total_roi``. This
is the default::
|---------------------------| total ROI
|rrrr|wwwwww|rrrr| block 1
|rrrr|wwwwww|rrrr| block 2
no further block
"overhang": Add all blocks that overlap with ``total_roi``, even if
they leave it. Client code has to take care of save access beyond
``total_roi`` in this case.::
|---------------------------| total ROI
|rrrr|wwwwww|rrrr| block 1
|rrrr|wwwwww|rrrr| block 2
|rrrr|wwwwww|rrrr| block 3 (overhanging)
|---------------------------| total ROI
|rrrrrr|www|rrrrrr| block 1
|rrrrrr|www|rrrrrr| block 2
|rrrrrr|www|rrrrrr| block 3
|rrrrrr|www|rrrrrr| block 4 (overhanging)
|rrrrrr|www|rrrrrr| block 5 (overhanging)
|rrrrrr|www|rrrrrr| block 6 (overhanging)
"shrink": Like "overhang", but shrink the boundary blocks' read and
write ROIs such that they are guaranteed to lie within
``total_roi``. The shrinking will preserve the context, i.e., the
difference between the read ROI and write ROI stays the same.::
|---------------------------| total ROI
|rrrr|wwwwww|rrrr| block 1
|rrrr|wwwwww|rrrr| block 2
|rrrr|www|rrrr| block 3 (shrunk)
Documentation accurately describes the current functionality.
Is this meant to be or should we change the "overhang" check to something like total_write_roi.contains(b.write_roi.get_begin())
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels