diff --git a/gstlal-inspiral/python/streamthinca.py b/gstlal-inspiral/python/streamthinca.py index 7551992233aee313ab9a2f634e3908d70758d8c4..534b894dbc05f05e5435013660db0df28af2ad5a 100644 --- a/gstlal-inspiral/python/streamthinca.py +++ b/gstlal-inspiral/python/streamthinca.py @@ -41,7 +41,7 @@ # -import bisect +from bisect import bisect_right import time @@ -231,7 +231,7 @@ def lower_bound_in_seglist(seglist, x): # NOTE: this is an operation that is performed in a number of # locations in various codes, and is something that I've screwed up # more than once. maybe this should be put into segments.py itself - i = bisect.bisect_right(seglist, x) + i = bisect_right(seglist, x) return i - 1 if i else 0