Private
Public Access
1
0

fixing export

This commit is contained in:
2025-04-13 14:38:34 +02:00
parent 305e12f201
commit 724945bc22
4 changed files with 33 additions and 30 deletions

View File

@@ -382,9 +382,12 @@ def resample(id, r, parent, overwrite=False):
rowdata['time'] = (rowdata['time']-rowdata.loc[0,'time'])*1000.
rowdata.set_index('time', inplace=True)
data.set_index('time', inplace=True)
rowdata_interpolated = rowdata.reindex(data.index.union(rowdata.index)).interpolate('index')
data = data.merge(rowdata_interpolated, left_index=True, right_index=True, how='left')
data = data.reset_index()
try:
rowdata_interpolated = rowdata.reindex(data.index.union(rowdata.index)).interpolate('index')
data = data.merge(rowdata_interpolated, left_index=True, right_index=True, how='left')
data = data.reset_index()
except ValueError:
return data, id, "Error: Could not interpolate data"
messages = []