Skip to content

Commit

Permalink
to_slice -> to_slice4d
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 671397639
  • Loading branch information
mjanusz authored and copybara-github committed Sep 5, 2024
1 parent 8e9ab87 commit 43c6de2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions connectomics/volume/mask.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ class MaskConfigs(dataclasses_json.DataClassJsonMixin):
# TODO(timblakely): Return a Subvolume.
def build_mask(
masks: Sequence[MaskConfig] | MaskConfigs,
box: bounding_box.BoundingBoxBase,
box: bounding_box.BoundingBox,
decorated_volume_loader: Callable[[metadata.DecoratedVolume], np.ndarray],
mask_volume_map: dict[str, Any] | None = None,
image: np.ndarray | None = None,
Expand Down Expand Up @@ -187,7 +187,7 @@ def build_mask(
decorated_volume_loader(config.volume.mask)
)
volume = mask_volume_map[volume_key]
mask = volume[box.to_slice()]
mask = volume[box.to_slice4d()]
else:
logging.fatal('Unsupported mask source: %s', config.to_json())

Expand Down

0 comments on commit 43c6de2

Please sign in to comment.