소스 검색

don't exclude pheromons with same distance

Bastien Sevajol 9 년 전
부모
커밋
0a4e581198
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      intelligine/simulation/molecule/DirectionMolecule.py

+ 1 - 1
intelligine/simulation/molecule/DirectionMolecule.py 파일 보기

@@ -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,