@@ -684,11 +684,11 @@ class _PropertyGrid(_Grid):
684
684
remove_property_layer(property_name): Removes a property layer from the grid by its name.
685
685
get_empty_mask(): Generates a boolean mask indicating empty cells on the grid.
686
686
get_neighborhood_mask(pos, moore, include_center, radius): Generates a boolean mask of the neighborhood.
687
- select_cells_multi_properties (conditions, mask, return_list): Selects cells based on multiple property conditions,
687
+ select_cells_by_properties (conditions, mask, return_list): Selects cells based on multiple property conditions,
688
688
optionally with a mask, returning either a list of coordinates or a mask.
689
689
select_extreme_value_cells(property_name, mode, mask, return_list): Selects cells with extreme values of a property,
690
690
optionally with a mask, returning either a list of coordinates or a mask.
691
- move_agent_to_random_cell (agent, conditions, mask): Moves an agent to a random cell meeting specified property
691
+ move_agent_to_cell_by_properties (agent, conditions, mask): Moves an agent to a random cell meeting specified property
692
692
conditions, optionally with a mask.
693
693
move_agent_to_extreme_value_cell(agent, property_name, mode, mask): Moves an agent to a cell with extreme value of
694
694
a property, optionally with a mask.
@@ -814,7 +814,7 @@ def get_neighborhood_mask(
814
814
mask [coords [:, 0 ], coords [:, 1 ]] = True
815
815
return mask
816
816
817
- def select_cells_multi_properties (
817
+ def select_cells_by_properties (
818
818
self , conditions : dict , mask : np .ndarray = None , return_list : bool = True
819
819
) -> list [Coordinate ] | np .ndarray :
820
820
"""
@@ -847,7 +847,7 @@ def select_cells_multi_properties(
847
847
else :
848
848
return combined_mask
849
849
850
- def move_agent_to_random_cell (
850
+ def move_agent_to_cell_by_properties (
851
851
self , agent : Agent , conditions : dict , mask : np .ndarray = None
852
852
) -> None :
853
853
"""
@@ -859,7 +859,7 @@ def move_agent_to_random_cell(
859
859
conditions (dict): Conditions for selecting the cell.
860
860
mask (np.ndarray, optional): A boolean mask to restrict the selection.
861
861
"""
862
- eligible_cells = self .select_cells_multi_properties (
862
+ eligible_cells = self .select_cells_by_properties (
863
863
conditions , mask , return_list = True
864
864
)
865
865
0 commit comments