Skip to content

Commit a111b5d

Browse files
committed
ENH: Always return a new set in sample_nodes
1 parent ab0f069 commit a111b5d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pelita/maze_generator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ def sample_nodes(nodes, k, rng=None):
9797
if k < len(nodes):
9898
return set(rng.sample(sorted(nodes), k=k))
9999
else:
100-
return nodes
100+
return set(nodes)
101101

102102

103103
def distribute_food(all_tiles, chamber_tiles, trapped_food, total_food, rng=None):

0 commit comments

Comments
 (0)