Explorar el Código

don't exclude pheromons with same distance

Bastien Sevajol hace 9 años
padre
commit
0a4e581198
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      intelligine/simulation/molecule/DirectionMolecule.py

+ 1 - 1
intelligine/simulation/molecule/DirectionMolecule.py Ver fichero

@@ -23,7 +23,7 @@ class DirectionMolecule():
23 23
         molecule = flavour.get_molecule(category=MOLECULES_DIRECTION, type=molecule_type)
24 24
 
25 25
         distance = molecule.get_distance()
26
-        around_molecule_filter = lambda around_molecule: around_molecule.get_distance() < distance #  TODO <= ?
26
+        around_molecule_filter = lambda around_molecule: around_molecule.get_distance() <= distance #  TODO <= ?
27 27
         if molecule_way == cls.WAY_DOWN:
28 28
             around_molecule_filter = lambda around_molecule: around_molecule.get_distance() >= distance
29 29
         around_molecules_points = cls._get_around_molecules(context, point, molecule_type,