Skip to content

Commit

Permalink
Increase WFCEnv max_attempt limit
Browse files Browse the repository at this point in the history
Minor cleanup
  • Loading branch information
jysdoran committed Aug 16, 2023
1 parent 456d948 commit f1bb1e3
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion minigrid/envs/wfc/graphtransforms.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
class EdgeDescriptor:
between: tuple[str, str] | tuple[str]
structure: str | None = None
weight = None


# This is maybe general enough to be in utils
Expand Down
2 changes: 1 addition & 1 deletion minigrid/envs/wfc/wfcenv.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def __init__(
if size < 3:
raise ValueError(f"Grid size must be at least 3 (currently {size})")
self.size = size
self.max_attempts = 100
self.max_attempts = 1000

if max_steps is None:
max_steps = self.size * 20
Expand Down
2 changes: 1 addition & 1 deletion tests/test_wfc/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def img_redmaze(resources: Resources) -> array:
import imageio # type: ignore

pattern = resources.get_pattern("RedMaze.png")
img = imageio.imread(pattern)
img = imageio.v2.imread(pattern)
except ImportError:
b = [0, 0, 0]
w = [255, 255, 255]
Expand Down

0 comments on commit f1bb1e3

Please sign in to comment.