Commit ce6de47d authored by Arnaud Campeas's avatar Arnaud Campeas
Browse files

tsio: bug fix in itertuples() + test adjustement

parent ca36c4dfec0d
......@@ -325,6 +325,13 @@ def test_bad_import(engine, tsh):
def test_revision_date(engine, tsh):
idate0 = datetime(2015, 1, 1, 0, 0, 0)
with tsh.newchangeset(engine, 'test', _insertion_date=idate0):
ts = genserie(datetime(2010, 1, 4), 'D', 4, [0], name='truc')
tsh.insert(engine, ts, 'ts_through_time')
assert idate0 == tsh.latest_insertion_date(engine, 'ts_through_time')
idate1 = datetime(2015, 1, 1, 15, 43, 23)
with tsh.newchangeset(engine, 'test', _insertion_date=idate1):
......
......@@ -513,7 +513,7 @@ class TimeSerie(object):
# initial ts
ts = self._deserialize(alldiffs.loc[0, 'diff'], table.name)
for _, row in alldiffs.loc[1:].itertuples():
for row in alldiffs.loc[1:].itertuples():
diff = subset(self._deserialize(row.diff, table.name),
from_value_date, to_value_date)
ts = self._apply_diff(ts, diff)
......
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