Пример #1
0
 def test_ptraj_t_column(self):
     suppress_plotting()
     df = self.sparse.copy()
     cols = list(df.columns)
     cols[cols.index('frame')] = 'arbitrary name'
     df.columns = cols
     plots.plot_traj(df, t_column='arbitrary name')
Пример #2
0
 def test_ptraj_t_column(self):
     suppress_plotting()
     df = self.sparse.copy()
     cols = list(df.columns)
     cols[cols.index('frame')] = 'arbitrary name'
     df.columns = cols
     plots.plot_traj(df, t_column='arbitrary name')
Пример #3
0
 def test_ptraj_unicode_labels(self):
     # smoke test
     plots.plot_traj(self.sparse, mpp=0.5)
Пример #4
0
 def test_ptraj_empty(self):
     suppress_plotting()
     f = lambda: plots.plot_traj(DataFrame(columns=self.sparse.columns))
     self.assertRaises(ValueError, f)
Пример #5
0
 def test_labeling_sparse_trajectories(self):
     suppress_plotting()
     plots.plot_traj(self.sparse, label=True)
Пример #6
0
 def test_labeling_sparse_trajectories(self):
     suppress_plotting()
     plots.plot_traj(self.sparse, label=True)
Пример #7
0
 def test_ptraj_unicode_labels(self):
     # smoke test
     plots.plot_traj(self.sparse, mpp=0.5)
Пример #8
0
 def test_ptraj_empty(self):
     suppress_plotting()
     f = lambda: plots.plot_traj(DataFrame(columns=self.sparse.columns))
     self.assertRaises(ValueError, f)