瀏覽代碼

method rename

Bastien Sevajol 9 年之前
父節點
當前提交
f364aaf940

+ 1 - 1
intelligine/simulation/object/brain/part/move/AntMoveBrainPart.py 查看文件

@@ -33,7 +33,7 @@ class AntMoveBrainPart(MoveBrainPart):
33 33
 
34 34
     @staticmethod
35 35
     def _get_direction_of_pheromone(context, point, pheromone_type):
36
-        search_pheromone_in_points = context.get_around_points_of(point, distance=1)
36
+        search_pheromone_in_points = context.get_around_points_of_point(point)
37 37
         try:
38 38
             best_pheromone_direction = DirectionPheromone.get_best_pheromone_direction_in(context,
39 39
                                                                                           point,

+ 1 - 1
intelligine/simulation/pheromone/DirectionPheromone.py 查看文件

@@ -48,7 +48,7 @@ class DirectionPheromone():
48 48
     @staticmethod
49 49
     def _get_around_pheromones(context, reference_point, pheromone_type,
50 50
                                pheromone_filter=lambda around_pheromone: True):
51
-        around_points = context.get_around_points_of(reference_point)
51
+        around_points = context.get_around_points_of_point(reference_point)
52 52
         around_pheromones_points = []
53 53
         for around_point in around_points:
54 54
             flavour = context.pheromones().get_flavour(around_point)

+ 1 - 1
intelligine/tests/simulation/pheromone/TestDirection.py 查看文件

@@ -55,7 +55,7 @@ class TestDirection(Base):
55 55
         :return:
56 56
         """
57 57
         self._set_up_pheromones(pheromones, re_init=re_init)
58
-        around_points = self._context.get_around_points_of(reference_point)
58
+        around_points = self._context.get_around_points_of_point(reference_point)
59 59
         direction_tested = DirectionPheromone.get_best_pheromone_direction_in(self._context,
60 60
                                                                               reference_point,
61 61
                                                                               around_points,