Beispiel #1
0
 def setUp(self):
     self.data = load_testdata('ds2')
     self.cell_list = data_to_cells(self.data,
                                    initial_crop=2,
                                    rotate='binary')
     self.cell_obj = self.cell_list[0]
     self.cell_obj.optimize()
    def setUp(self):
        self.data = load_testdata('ds1')
        f_path = os.path.dirname(os.path.realpath(__file__))
        self.storm_cells_1 = load(
            os.path.join(f_path, 'test_data/test_single_spot_storm.hdf5'))
        self.storm_cells_2 = load(
            os.path.join(f_path, 'test_data/test_double_spot_storm.hdf5'))

        cells_no_flu = []
        for c in self.storm_cells_2:
            d = Data()
            d.add_data(c.data.binary_img, 'binary')
            d.add_data(c.data.data_dict['storm_1'], 'storm', 'storm_1')
            d.add_data(c.data.data_dict['storm_2'], 'storm', 'storm_2')
            cell = Cell(d)
            cells_no_flu.append(cell)

        self.storm_cells_2_no_flu = CellList(cells_no_flu)
Beispiel #3
0
 def setUp(self):
     self.data = load_testdata('ds1')
Beispiel #4
0
 def setUp(self):
     self.data = load_testdata('ds1')
     f_path = os.path.dirname(os.path.realpath(__file__))
     self.cells = load(
         os.path.join(f_path, 'test_data/test_synth_cell_storm.hdf5'))
     self.cell = self.cells[0]
 def setUp(self):
     data = load_testdata('ds1')
     self.cell_list = data_to_cells(data)