Skip to content

Commit

Permalink
impolemented test for ptcor1 read
Browse files Browse the repository at this point in the history
  • Loading branch information
zonca committed Nov 17, 2011
1 parent 9e9b750 commit 5dff96e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
1 change: 0 additions & 1 deletion planck/correction.py
Expand Up @@ -108,5 +108,4 @@ def ptcor1(od):
qcor = qarray.from_vectors(np.array([0,0,1]),zn)

qcor_tot = qarray.mult(q_str_LOS, qarray.mult(qcor, qarray.inv(q_str_LOS)))

return qcor_tot
10 changes: 10 additions & 0 deletions planck/test_correction.py
Expand Up @@ -54,7 +54,17 @@ def test_ahf_wobble_correction_angles(self):
def test_ahf_wobble_correction_angles(self):
obt = [106753612931221/2.**16 + 1] #PID 62, first of OD 93
wobble_rot = ahf_wobble(obt)
#TODO implement real test

def test_read_ptcor1(self):
delta_inscan, delta_xscan = read_ptcor1(100)
self.assertAlmostEqual(delta_inscan, -0.16329599216)
self.assertAlmostEqual(delta_xscan, -0.0351865320531)

def test_ptcor1(self):

rot = ptcor1(100)
#TODO implement real test

if __name__ == '__main__':
unittest.main()

0 comments on commit 5dff96e

Please sign in to comment.