def test_xy_uncertainty(self): expected = [Gaussian(0, 4), Gaussian(2, 4), Uniform(0, 40)] evaluated = make_center_priors(self.image, xy_uncertainty_pixels=2) self.assertEqual(evaluated, expected)
def test_z_range_units(self): expected = [Gaussian(0, 2), Gaussian(2, 2), Uniform(2, 10)] evaluated = make_center_priors(self.image, z_range_units=(2, 10)) self.assertEqual(evaluated, expected)
def test_basic(self): expected = [Gaussian(0, 2), Gaussian(2, 2), Uniform(0, 40)] evaluated = make_center_priors(self.image) self.assertEqual(evaluated, expected)