Skip to content

Commit

Permalink
chore: removed boolean statement
Browse files Browse the repository at this point in the history
  • Loading branch information
siddarthsingh1 committed Jan 8, 2024
1 parent abba40b commit 73a35d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jumanji/environments/routing/pacman/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ def get_valid_positions(pos: chex.Array) -> Any:
valid_no_back = valids * ghost_mask
# Get distances of valid locations
valid_no_back_d = valid_no_back * ghost_dist
invert_mask = valid_no_back != True # type: ignore # noqa: E712
invert_mask = ~valid_no_back
invert_mask = invert_mask * jnp.inf
# Set distance of all invalid areas to infinity
valid_no_back_d = valid_no_back_d + invert_mask
Expand Down

0 comments on commit 73a35d9

Please sign in to comment.