Browse Source

method rename

Bastien Sevajol 9 years ago
parent
commit
f364aaf940

+ 1 - 1
intelligine/simulation/object/brain/part/move/AntMoveBrainPart.py View File

33
 
33
 
34
     @staticmethod
34
     @staticmethod
35
     def _get_direction_of_pheromone(context, point, pheromone_type):
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
         try:
37
         try:
38
             best_pheromone_direction = DirectionPheromone.get_best_pheromone_direction_in(context,
38
             best_pheromone_direction = DirectionPheromone.get_best_pheromone_direction_in(context,
39
                                                                                           point,
39
                                                                                           point,

+ 1 - 1
intelligine/simulation/pheromone/DirectionPheromone.py View File

48
     @staticmethod
48
     @staticmethod
49
     def _get_around_pheromones(context, reference_point, pheromone_type,
49
     def _get_around_pheromones(context, reference_point, pheromone_type,
50
                                pheromone_filter=lambda around_pheromone: True):
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
         around_pheromones_points = []
52
         around_pheromones_points = []
53
         for around_point in around_points:
53
         for around_point in around_points:
54
             flavour = context.pheromones().get_flavour(around_point)
54
             flavour = context.pheromones().get_flavour(around_point)

+ 1 - 1
intelligine/tests/simulation/pheromone/TestDirection.py View File

55
         :return:
55
         :return:
56
         """
56
         """
57
         self._set_up_pheromones(pheromones, re_init=re_init)
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
         direction_tested = DirectionPheromone.get_best_pheromone_direction_in(self._context,
59
         direction_tested = DirectionPheromone.get_best_pheromone_direction_in(self._context,
60
                                                                               reference_point,
60
                                                                               reference_point,
61
                                                                               around_points,
61
                                                                               around_points,