Skip to content

Commit

Permalink
added support for annotation functions in the rule parser
Browse files Browse the repository at this point in the history
  • Loading branch information
dyumanaditya committed Jul 14, 2023
1 parent 07655f1 commit 802a2d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyreason/scripts/interpretation/interpretation.py
Original file line number Diff line number Diff line change
Expand Up @@ -1374,7 +1374,7 @@ def annotate(annotation_functions, rule, annotations, weights):
if func_name == '':
return interval.closed(rule.get_bnd().lower, rule.get_bnd().upper)
else:
with numba.objmode(annotation='interval.interval_type'):
with numba.objmode(annotation='interval_type'):
for func in annotation_functions:
if func.__name__ == func_name:
annotation = func(annotations, weights)
Expand Down

0 comments on commit 802a2d2

Please sign in to comment.