class SpatialPatternVolumeData(SpatialPatternData):
    """ A spatio-temporal pattern defined in a volume. """

    volume = volumes.Volume(label="Volume")

    focal_points_volume = arrays.IndexArray(label="Focal points",
                                            target=volume)
Esempio n. 2
0
 def test_volume(self):
     dt = volumes.Volume()
     summary_info = dt.summary_info
     self.assertEqual(summary_info['Origin'].shape, (0, ))
     self.assertEqual(summary_info['Voxel size'].shape, (0, ))
     self.assertEqual(summary_info['Volume type'], 'Volume')
     self.assertEqual(summary_info['Units'], 'mm')
     self.assertEqual(dt.origin.shape, (0, ))
     self.assertEqual(dt.voxel_size.shape, (0, ))
     self.assertEqual(dt.voxel_unit, 'mm')
Esempio n. 3
0
 def test_volume(self):
     dt = volumes.Volume(origin=numpy.array([]), voxel_size=numpy.array([]))
     summary_info = dt.summary_info()
     assert summary_info['Origin'] is not None
     assert summary_info['Voxel size'] is not None
     assert summary_info['Volume type'] == 'Volume'
     assert summary_info['Units'] == 'mm'
     assert dt.origin is not None
     assert dt.voxel_size is not None
     assert dt.voxel_unit == 'mm'
Esempio n. 4
0
 def test_volume(self):
     dt = volumes.Volume()
     summary_info = dt.summary_info
     assert summary_info['Origin'].shape == (0,)
     assert summary_info['Voxel size'].shape == (0,)
     assert summary_info['Volume type'] == 'Volume'
     assert summary_info['Units'] == 'mm'
     assert dt.origin.shape == (0,)
     assert dt.voxel_size.shape == (0,)
     assert dt.voxel_unit == 'mm'