|
|
|
|
23
|
molecule = flavour.get_molecule(category=MOLECULES_DIRECTION, type=molecule_type)
|
23
|
molecule = flavour.get_molecule(category=MOLECULES_DIRECTION, type=molecule_type)
|
24
|
|
24
|
|
25
|
distance = molecule.get_distance()
|
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
|
if molecule_way == cls.WAY_DOWN:
|
27
|
if molecule_way == cls.WAY_DOWN:
|
28
|
around_molecule_filter = lambda around_molecule: around_molecule.get_distance() >= distance
|
28
|
around_molecule_filter = lambda around_molecule: around_molecule.get_distance() >= distance
|
29
|
around_molecules_points = cls._get_around_molecules(context, point, molecule_type,
|
29
|
around_molecules_points = cls._get_around_molecules(context, point, molecule_type,
|