Changeset 1903
- Timestamp:
- 08/26/10 12:05:20 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/test_scantable.py
r1844 r1903 3 3 import shutil 4 4 import datetime 5 from nose.tools import * 5 6 from asap import scantable, selector, mask_not 6 7 from asap.logging import asaplog 8 # no need for log messages 7 9 asaplog.disable() 8 9 from nose.tools import *10 10 11 11 def tempdir_setup(): … … 72 72 sel.set_polarisations("YY") 73 73 self.st.set_selection(sel) 74 assert_equal(self.st.getpolnos(), (1,))74 assert_equal(self.st.getpolnos(), [1]) 75 75 sel1 = self.st.get_selection() 76 76 assert_equal(sel1.get_pols(), [1]) 77 77 self.st.set_selection(pols="XX") 78 assert_equal(self.st.getpolnos(), (0,))78 assert_equal(self.st.getpolnos(), [0]) 79 79 80 80 … … 165 165 def test_drop_scan(self): 166 166 s0 = self.st.drop_scan(1) 167 assert_equal(s0.getscannos(), (0,))167 assert_equal(s0.getscannos(), [0]) 168 168 s1 = self.st.drop_scan([0]) 169 assert_equal(s1.getscannos(), (1,))169 assert_equal(s1.getscannos(), [1]) 170 170 171 171 def test_flag(self):
Note:
See TracChangeset
for help on using the changeset viewer.