Changeset 1925 for trunk/test


Ignore:
Timestamp:
09/14/10 13:06:17 (14 years ago)
Author:
Malte Marquarding
Message:

Add some basic tests of poly_baseline

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/test_scantable.py

    r1903 r1925  
    206206            for spec in ds:
    207207                assert_almost_equals(sum(spec)/len(spec), 0.0, 5)
     208
     209    def test_auto_poly_baseline(self):
     210        q = self.st.auto_quotient()
     211        b = q.auto_poly_baseline(insitu=False)
     212        res_rms = (q-b).stats('rms')
     213        assert_almost_equals(res_rms[0], 0.38370, 5)
     214        assert_almost_equals(res_rms[1], 0.38780, 5)       
     215       
     216
     217    def test_poly_baseline(self):
     218        q = self.st.auto_quotient()
     219        msk = q.create_mask([0.0, 1471.0], [1745.0, 4095.0])
     220        b = q.poly_baseline(order=0, mask=msk,insitu=False)
     221        res_rms = (q-b).stats('rms')
     222        assert_almost_equals(res_rms[0], 0.38346, 5)
     223        assert_almost_equals(res_rms[1], 0.38780, 5)       
Note: See TracChangeset for help on using the changeset viewer.