Skip to content

Commit

Permalink
test both horiz & vert neighbors
Browse files Browse the repository at this point in the history
  • Loading branch information
wpbonelli committed Mar 14, 2022
1 parent 4d84d09 commit 24d4f13
Show file tree
Hide file tree
Showing 2 changed files with 372 additions and 153 deletions.
2 changes: 1 addition & 1 deletion cactice/grids.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def get_neighborhood(
neighborhood[coords] = grid[ii, jj]

# vertical: i different, j equal
elif (neighbors == Neighbors.HORIZONTAL) and (i != ii and j == jj):
elif (neighbors == Neighbors.VERTICAL) and (i != ii and j == jj):
logger.info(f"Adding cell ({i}, {j})'s vertical neighbor ({ii}, {jj}), ({i}, {j})")
neighborhood[coords] = grid[ii, jj]

Expand Down
Loading

0 comments on commit 24d4f13

Please sign in to comment.