Skip to content

Commit

Permalink
Grid: Relax requirement of halo size
Browse files Browse the repository at this point in the history
  • Loading branch information
stuarteberg committed Feb 19, 2019
1 parent f6d87fa commit 1b393af
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions neuclease/util/grid.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,10 @@ def __init__(self, block_shape, offset=None, halo=0):

self.halo_shape = np.zeros_like(self.block_shape)
self.halo_shape[:] = halo
assert (self.halo_shape < self.block_shape).all(), \
f"Halo shape must be smaller than the block shape in all dimensions: {self.halo_shape} vs {self.block_shape}"

# FIXME: Why is this assertion necessary?
assert (self.halo_shape <= self.block_shape).all(), \
f"Halo shape must be <= than the block shape in all dimensions: {self.halo_shape} vs {self.block_shape}"

def equivalent_to(self, other_grid):
"""
Expand Down

0 comments on commit 1b393af

Please sign in to comment.