flake8 fix

This commit is contained in:
Marcell Vazquez-Chanlatte 2019-09-09 14:35:13 -07:00
parent 8b85376e9b
commit c247303615

View file

@ -26,7 +26,7 @@ def interp(sig, t, tag=None):
# TODO: return function that interpolates the whole signal.
sig = sig.project({tag})
idx = sig.data.bisect_right(t) - 1
if idx<0:
if idx < 0:
return None
else:
key = sig.data.keys()[idx]