Beispiel #1
0
 def test_rectify_channels_copy(self):
     """Rectify channels must not change the original parameter."""
     cpy = self.dat.copy()
     rectify_channels(self.dat)
     self.assertEqual(cpy, self.dat)
Beispiel #2
0
 def test_rectify_channels(self):
     """Rectify channels of positive and negative data must be equal."""
     dat = rectify_channels(self.dat.copy(data=-self.dat.data))
     dat2 = rectify_channels(self.dat)
     self.assertEqual(dat, dat2)