M test/test_api.py +2 -2
@@ 433,10 433,10 @@ def test_erasure(tsx):
)
)
- diff = tsx.update('erasure', ts, 'Babar')
+ tsx.update('erasure', ts, 'Babar')
assert not tsx.insertion_dates('erasure')
- diff = tsx.update('erasure', ts, 'Babar', keepnans=True)
+ tsx.update('erasure', ts, 'Babar', keepnans=True)
assert len(tsx.insertion_dates('erasure')) == 1
ts = pd.Series(
M test/test_tsio.py +2 -2
@@ 1021,7 1021,7 @@ 2024-01-01 00:00:00+00:00 2024-01-01
ts = pd.Series(
[-1, -1],
index=pd.date_range(
- pd.Timestamp(f'2024-1-1'),
+ pd.Timestamp('2024-1-1'),
freq='D',
periods=2
)
@@ 1031,7 1031,7 @@ 2024-01-01 00:00:00+00:00 2024-01-01
ts,
'test-diffs',
'Babar',
- insertion_date=pd.Timestamp(f'2024-1-4', tz='utc')
+ insertion_date=pd.Timestamp('2024-1-4', tz='utc')
)
assert_hist("""
insertion_date value_date
M tshistory/tsio.py +2 -2
@@ 401,8 401,8 @@ class timeseries:
cn, self, name, tablename,
from_insertion_date, to_insertion_date
)
- for csid, idate, diff in iterable:
- out[idate] = diff
+ for csid, idate, tsdiff in iterable:
+ out[idate] = tsdiff
return out