Skip to content

Commit

Permalink
style: improve naming
Browse files Browse the repository at this point in the history
  • Loading branch information
clslgrnc committed Aug 25, 2020
1 parent be52a31 commit ba95106
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions stix2matcher/matcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -1473,7 +1473,7 @@ def exitObservationExpressionStartStop(self, ctx):
start_time, stop_time = self.__pop(debug_label)
bindings = self.__pop(debug_label)

def check_within(binding):
def check_overlap(binding):
return all(
_overlap(start_time, stop_time, *self.__time_intervals[obs_id])
in (_OVERLAP, _OVERLAP_TOUCH_OUTER)
Expand All @@ -1484,7 +1484,7 @@ def check_within(binding):
# satisfy, since a value can't be both >= and < the same number.
# And of course it's impossible if start > stop.
if start_time < stop_time:
filtered_bindings = (binding for binding in bindings if check_within(binding))
filtered_bindings = (binding for binding in bindings if check_overlap(binding))
else:
filtered_bindings = iter(())

Expand Down

0 comments on commit ba95106

Please sign in to comment.