コード例 #1
0
 def test_get_observation_significances(self):
     """Does this work when given correct input?"""
     sig_file = list(self.example_file1)
     expected = {89673569:2.18334244957, 89673786:1.49353654761, 
                 89673554:0.925925925958, 89673554:0.925925925958, 
                 89673612:0.372504190703, 89673576:0.261714337513, 
                 89673416:0.00296568141117}
     self.assertEqual(get_observation_significances(sig_file, 0, 1), expected)
コード例 #2
0
 def test_get_observation_significances_2(self):
     """Does this work when given correct input?"""
     sig_file = list(self.example_file2)
     expected = {37727329: 0.000410679807173, 17122884: 1.65149355352e-05, 
                 45665159: 0.000458525064284, 20657577: 1.36374430037e-06, 
                 25487245: 0.000531817951012, 20657552: 3.67213902751e-08, 
                 34837524: 0.000278191479631, 17866198: 0.000277108761292, 
                 21681115: 6.27910706602e-10, 25636117: 0.000434635239138}
     self.assertEqual(get_observation_significances(sig_file, 0, 1), expected)
コード例 #3
0
 def test_get_observation_significances_3(self):
     """Does this work when given correct input?"""
     sig_file = list(self.example_file3)
     expected = {89673569:2.18334244957, 89673786:0}
     self.assertEqual(get_observation_significances(sig_file, 0, 1), expected)