def intensities(self, codebook=None) -> IntensityTable: if codebook is None: codebook = self.codebook() intensities = IntensityTable.synthetic_intensities( codebook, self.n_z, self.height, self.width, self.n_spots, self.mean_fluor_per_spot, self.mean_photons_per_fluor) assert intensities.dtype == np.float32 and intensities.max() <= 1 return intensities
def testing_data(): np.random.seed(1) codebook = test_utils.codebook_array_factory() num_z, height, width = 3, 4, 5 intensities = IntensityTable.synthetic_intensities(codebook, num_z=num_z, height=height, width=width, n_spots=4) return intensities
def synthetic_intensity_table(loaded_codebook) -> IntensityTable: return IntensityTable.synthetic_intensities(loaded_codebook, n_spots=2)