Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def _get_decision_facts(self):
self._action_decision_facts = []
self._state_decision_facts = []
for i, n, t in self._gp:
if t == 'atom' and n.probability == Term('?'):
functor = n.name.functor
if functor in self._state_functors:
self._state_decision_facts.append(n.name)
else:
self._action_decision_facts.append(n.name)
self._state_decision_facts = sorted(self._state_decision_facts, key=Term.__repr__)