added test for split_channels to check whethre descriptor is written correctly
@@ -188,6 +188,7 @@ class TestDataTime(unittest.TestCase):
self.assertEqual(splited_list[0].n_time, 15)
self.assertEqual(splited_list[2].n_time, 15)
self.assertEqual(splited_list[1].channel_descriptors['rois'][0], 'IT')
+ self.assertEqual(splited_list[1].descriptors['rois'], 'IT')
def test_datasettime_split_time(self):
measurements = np.zeros((10, 5, 15))
@@ -210,6 +211,7 @@ class TestDataTime(unittest.TestCase):
self.assertEqual(splited_list[0].n_time, 1)
self.assertEqual(splited_list[2].n_time, 1)
self.assertEqual(splited_list[1].time_descriptors['time'][0], tim_des['time'][1])
+ self.assertEqual(splited_list[1].descriptors['time'], tim_des['time'][1])
def test_datasettime_bin_time(self):
measurements = np.random.randn(10, 5, 15)
