Conditions | 3 |
Total Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Changes | 3 | ||
Bugs | 0 | Features | 0 |
1 | from intelligine.core.exceptions import BestMoleculeHere |
||
22 | def run(self, obj, context, synergy_manager): |
||
23 | |||
24 | points_distances = self._parameters['points_distances'] |
||
25 | smell_type = obj.get_smell() |
||
26 | |||
27 | for smell_point in points_distances: |
||
28 | distance = points_distances[smell_point] |
||
29 | molecule = Molecule(MOLECULES_DIRECTION, smell_type, distance) |
||
30 | |||
31 | try: |
||
32 | DirectionMolecule.appose(context, smell_point, molecule) |
||
33 | except BestMoleculeHere: |
||
34 | pass |
||
35 |