add serial readout. finish graph layout
This commit is contained in:
@@ -32,6 +32,10 @@ class Filter:
|
||||
def __call__(self) -> pd.DataFrame:
|
||||
calib_factor = 100. / float(self.calib_entry.get())
|
||||
df = self.device.data
|
||||
|
||||
df = df[df['weights'] < 10e9]
|
||||
df['timestamps'] -= df['timestamps'].min()
|
||||
|
||||
df['filtered'], df['filtered_calib'] = self.filter(df, calib_factor)
|
||||
df['calib_weights'] = df['weights'] * calib_factor
|
||||
return df
|
||||
|
||||
Reference in New Issue
Block a user