Exemplo n.º 1
0
 def test_all_radii_give_same_wobble(self):
     """Test that the wobble stays roughly the same for all radii."""
     if self.test_all_radii:
         star = Starshot(self.star_file)
         for radius in np.linspace(0.9, 0.25, 8):
             star.analyze(radius=float(radius), min_peak_height=self.min_peak_height, recursive=self.recursive)
             self.assertAlmostEqual(star.wobble.diameter_mm, self.wobble_diameter_mm, delta=self.wobble_tolerance)
Exemplo n.º 2
0
 def setUpClass(cls):
     cls.star = Starshot(cls.star_file)
     cls.star.analyze(recursive=cls.recursive, min_peak_height=cls.min_peak_height, fwhm=cls.fwxm)
Exemplo n.º 3
0
 def test_analyze_without_images(self):
     star = Starshot()
     with self.assertRaises(AttributeError):
         star.analyze()