Changeset 2791 for trunk/test


Ignore:
Timestamp:
03/15/13 14:36:12 (12 years ago)
Author:
Malte Marquarding
Message:

Ticket #289: added anility to set Tsys, both for scalar and vector values

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/test_scantable.py

    r2787 r2791  
    120120    def test_get_tsys(self):
    121121        assert_almost_equal(self.st.get_tsys()[0], 175.830429077)
     122
     123    def test_set_tsys(self):
     124        s = self.st.copy()
     125        newval = 100.0
     126        s.set_tsys(newval, 0)
     127        assert_almost_equal(s.get_tsys()[0], newval)
     128        s2 = self.st.copy()
     129        s2.set_tsys(newval)
     130        out = s2.get_tsys()
     131        for i in xrange(len(out)):
     132            assert_almost_equal(out[i], newval)
    122133
    123134    def test_get_time(self):
Note: See TracChangeset for help on using the changeset viewer.