Skip to content

Commit 766d4f7

Browse files
ourmoaznittzel
andauthored
Update puan/logic/plog/__init__.py
Co-authored-by: Rikard Olsson <rikard@ourstudio.se>
1 parent 568b459 commit 766d4f7

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

puan/logic/plog/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -634,8 +634,7 @@ def _evaluate_propositions(prop, interpretation):
634634
)
635635
return interpretation
636636
interpretation_map = dict(map(lambda x: (x.id, x), filter(lambda x: type(x) == puan.variable, self.flatten())))
637-
for x, y in interpretation.items():
638-
if x in interpretation_map:
637+
for x, y in filter(lambda x: x[0] in interpretation_map, interpretation.items()):
639638
_check_variable_in_bounds(x, y, interpretation_map[x].bounds)
640639
return _evaluate_propositions(self, interpretation)
641640

0 commit comments

Comments
 (0)