Пример #1
0
 def test_multi_roundtrips(self):
     dfs = self.real_mt.to_df()
     new = Trace.from_df(dfs)
     new._assert_allclose(self.real_mt)
Пример #2
0
 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)
Пример #3
0
 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
Пример #4
0
 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
Пример #5
0
 def test_multi_roundtrips(self):
     dfs = self.real_mt.to_df()
     new = Trace.from_df(dfs)
     new._assert_allclose(self.real_mt)
Пример #6
0
 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)