source: branches/hpc34/test/test_average.py@ 2623

Last change on this file since 2623 was 2481, checked in by Malte Marquarding, 13 years ago

Added and updated test scripts; e.g. hobart data

File size: 742 bytes
Line 
1from nose.tools import *
2from asap import scantable, selector
3from asap.logging import asaplog
4# no need for log messages
5#asaplog.disable()
6
7class TestAverage(object):
8 def setup(self):
9 s = scantable("data/2011-10-13_1609-MX025.rpf", average=False)
10 # make sure this order is always correct - in can be random
11 sel = selector()
12 sel.set_order=(["SCANNO", "IFNO", "POLNO"])
13 s.set_selection(sel)
14 self.st = s.copy()
15
16
17# assert_almost_equals(res_rms[0], 0.38346, 5)
18# assert_almost_equals(res_rms[1], 0.38780, 5)
19
20 def test_average(self):
21 av = self.st.average_time()
22 assert_equals(av.nrow(),self.st.nbeam()*self.st.nif()*self.st.npol())
Note: See TracBrowser for help on using the repository browser.