Skip to content

Commit 69f1652

Browse files
committed
removed preserveidx param
1 parent 763ce15 commit 69f1652

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

btplotting/live/client.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,8 +221,7 @@ def _set_data_by_idx(self, idx=None):
221221
end=end,
222222
figid=self._figid,
223223
back=self.lookback,
224-
fillgaps=self.fillgaps,
225-
preserveidx=True)
224+
fillgaps=self.fillgaps)
226225
self._datahandler.set_df(df)
227226

228227
def _pause(self):

btplotting/live/datahandler.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,7 @@ def _fill(self):
9898
figid = self._client.get_figid()
9999
lookback = self._client.lookback
100100
fillgaps = self._client.fillgaps
101-
df = app.get_data(
102-
figid=figid, back=lookback, fillgaps=fillgaps, preserveidx=True)
101+
df = app.get_data(figid=figid, back=lookback, fillgaps=fillgaps)
103102
self._set_data(df)
104103
# init by calling set_cds_columns_from_df
105104
# after this, all cds will already contain data
@@ -177,15 +176,13 @@ def update(self):
177176
# if there is more new data then lookback length
178177
# don't load from last index but from end of data
179178
if (lastidx < 0 or lastavailidx - lastidx > (2 * lookback)):
180-
data = app.get_data(
181-
back=lookback, fillgaps=fillgaps, preserveidx=True)
179+
data = app.get_data(back=lookback, fillgaps=fillgaps)
182180
# if there is just some new data (less then lookback)
183181
# load from last index, so no data is skipped
184182
elif lastidx <= lastavailidx:
185183
startidx = max(0, lastidx - 2)
186184
start = data_clock.get_dt_at_idx(startidx)
187-
data = app.get_data(
188-
start=start, fillgaps=fillgaps, preserveidx=True)
185+
data = app.get_data(start=start, fillgaps=fillgaps)
189186
# if any new data was loaded
190187
if data is not None:
191188
self._process_data(data)

0 commit comments

Comments
 (0)