def test_multi_roundtrips(self): dfs = self.real_mt.to_df() new = Trace.from_df(dfs) new._assert_allclose(self.real_mt)
def test_single_roundtrips(self): source_from_file = self.real_singles[0] from_df = Trace.from_df(source_from_file.to_df()) source_from_file._assert_allclose(from_df)
def test_from_df(self): df = self.t.to_df() new_trace = Trace.from_df(df) assert new_trace == self.t new_mt = Trace.from_df((df, df, df)) assert new_mt == self.t