Example #1
0
 def test_create_tiffs(self):
     seq = sima.Sequence.create(
         'TIFFs', [[example_tiffs(), example_tiffs()],
                   [example_tiffs(), example_tiffs()],
                   [example_tiffs(), example_tiffs()],
                   [example_tiffs(), example_tiffs()]])
     assert_equal(seq.shape, (3, 4, 173, 173, 2))
Example #2
0
 def test_create_tiffs(self):
     seq = sima.Sequence.create(
         'TIFFs', [[example_tiffs(), example_tiffs()],
                   [example_tiffs(), example_tiffs()],
                   [example_tiffs(), example_tiffs()],
                   [example_tiffs(), example_tiffs()]])
     assert_equal(seq.shape, (3, 4, 173, 173, 2))
Example #3
0
    def setup(self):
        global tmp_dir

        path = example_hdf5()
        seq = Sequence.create('HDF5', path, 'yxt')
        self.filepath = os.path.join(tmp_dir, "test_imaging_dataset.sima")
        self.ds = ImagingDataset([seq, seq], self.filepath)

        self.filepath_tiffs = os.path.join(tmp_dir, "test_dataset_tiffs.sima")
        seq = Sequence.create(
            'TIFFs', [[example_tiffs(), example_tiffs()],
                      [example_tiffs(), example_tiffs()],
                      [example_tiffs(), example_tiffs()],
                      [example_tiffs(), example_tiffs()]])
        self.ds_tiffs = ImagingDataset([seq, seq], self.filepath_tiffs)