Commit 98758b7b authored by Aurélien Campéas's avatar Aurélien Campéas
Browse files

delta: return None on non-existant series

parent dd1f8fb69680
......@@ -1031,6 +1031,9 @@ def test_long_name(engine, tsh):
def test_get_delta(engine, tsh):
assert tsh.get_delta(engine, 'no-such-series',
delta=pd.Timedelta(days=2)) is None
for idate in pd.DatetimeIndex(start=utcdt(2015, 1, 1),
end=utcdt(2015, 1, 1, 3),
freq='H'):
......
......@@ -231,6 +231,8 @@ class TimeSerie(SeriesServices):
from_value_date=from_value_date,
to_value_date=to_value_date
)
if histo is None:
return None
vimap = {}
vvmap = {}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment