Exemplo n.º 1
0
 def test_image_inverted(self):
     """Check that the demo image was actually inverted, as it needs to be."""
     star = Starshot.from_demo_image()
     top_left_corner_val_before = star.image.array[0, 0]
     star.image.check_inversion_by_histogram(percentiles=[4, 50, 96])
     top_left_corner_val_after = star.image.array[0, 0]
     self.assertNotEqual(top_left_corner_val_before, top_left_corner_val_after)
Exemplo n.º 2
0
 def test_image_inverted(self):
     """Check that the demo image was actually inverted, as it needs to be."""
     star = Starshot.from_demo_image()
     top_left_corner_val_before = star.image.array[0, 0]
     star._check_image_inversion()
     top_left_corner_val_after = star.image.array[0, 0]
     self.assertNotEqual(top_left_corner_val_before, top_left_corner_val_after)
Exemplo n.º 3
0
 def setUp(self):
     self.star = Starshot.from_demo_image()
     self.star.analyze()
Exemplo n.º 4
0
 def test_fails_with_tight_tol(self):
     star = Starshot.from_demo_image()
     star.analyze(tolerance=0.1)
     self.assertFalse(star.passed)
Exemplo n.º 5
0
 def construct_star(cls):
     return Starshot.from_demo_image()
Exemplo n.º 6
0
 def setUp(self):
     self.star = Starshot.from_demo_image()
     self.star.analyze()
Exemplo n.º 7
0
 def test_fails_with_tight_tol(self):
     star = Starshot.from_demo_image()
     star.analyze(tolerance=0.1)
     self.assertFalse(star.passed)
Exemplo n.º 8
0
 def construct_star(cls):
     return Starshot.from_demo_image()