From 8fa8c964d48ef1911cc949b3594e93d011f0c0ee Mon Sep 17 00:00:00 2001 From: Ryan Ridden Date: Fri, 15 Mar 2024 14:11:15 +1300 Subject: [PATCH] modern tests --- tests/test_tessreduce_main.py | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) mode change 100644 => 100755 tests/test_tessreduce_main.py diff --git a/tests/test_tessreduce_main.py b/tests/test_tessreduce_main.py old mode 100644 new mode 100755 index 6d63b39..904672d --- a/tests/test_tessreduce_main.py +++ b/tests/test_tessreduce_main.py @@ -8,9 +8,10 @@ def setUpClass(cls): """ Initial setup run only once before all the tests """ - ra = 189.1385817 - dec = 11.2316535 - tess = tr.tessreduce(ra=ra, dec=dec) + ra = 10.127#189.1385817 + dec = -50.687#11.2316535 + sector = 2 + tess = tr.tessreduce(ra=ra, dec=dec, sector=sector, reduce=False) tess.get_ref() cls.tess = tess @@ -20,8 +21,8 @@ def test_Make_mask(self): def test_background(self): self.tess.background() - def test_Centroids_DAO(self): - self.tess.centroids_DAO() + def test_align(self): + self.tess.fit_shift() def test_Shift_images(self): self.tess.shift_images() @@ -32,5 +33,8 @@ def test_field_calibrate(self): def test_Diff_lc(self): self.tess.diff_lc() + def test_full(self): + tess.reduce() + if __name__ == '__main__': unittest.main()