Commit d966d77a authored by Sebastien Robin's avatar Sebastien Robin

a recorded property could also be None

parent 1c7d9e4b
...@@ -71,7 +71,7 @@ class FloatEquivalenceTester(Predicate, EquivalenceTesterMixin): ...@@ -71,7 +71,7 @@ class FloatEquivalenceTester(Predicate, EquivalenceTesterMixin):
tested_property = self.getTestedProperty() tested_property = self.getTestedProperty()
if getattr(decision_movement, 'isPropertyRecorded', if getattr(decision_movement, 'isPropertyRecorded',
lambda x:False)(tested_property): lambda x:False)(tested_property):
decision_value = decision_movement.getRecordedProperty(tested_property) decision_value = decision_movement.getRecordedProperty(tested_property) or 0.0
else: else:
decision_value = self._getTestedPropertyValue(decision_movement, decision_value = self._getTestedPropertyValue(decision_movement,
tested_property) or 0.0 tested_property) or 0.0
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment