def test_single_trace_widget(self): single_wd = SeparateTracesPlotlyWidget(timeseries=self.ts_multi) tt = get_timeseries_tt(self.ts_multi) single_wd.controls["time_window"].value = [ tt[int(len(tt) * 0.2)], tt[int(len(tt) * 0.4)], ]
def setUp(self): data = np.random.rand(160, 3) self.ts = TimeSeries( name="name", description="no description", data=data, starting_time=0.0, rate=100.0, unit="m", ) self.ts_single = TimeSeries( name="test_timeseries", data=data[:, 0], unit="m", starting_time=0.0, rate=100.0, ) self.tt = get_timeseries_tt(self.ts)