Exemple #1
0
 def test_pkBaer(self):
     """
     Test pkBaer against implementation for UNESCO short course
     """
     file = os.path.join(self.path, 'manz_waldk.a01.gz')
     data = np.loadtxt(gzip.open(file), dtype='float32')
     df, ntdownmax, ntupevent, thr1, thr2, npreset_len, np_dur = \
         (200.0, 20, 60, 7.0, 12.0, 100, 100)
     nptime, pfm = pkBaer(data, df, ntdownmax, ntupevent, thr1, thr2,
                          npreset_len, np_dur)
     self.assertEquals(nptime, 17545)
     self.assertEquals(pfm, 'IPU0')
Exemple #2
0
 def test_pkBaer(self):
     """
     Test pkBaer against implementation for UNESCO short course
     """
     file = os.path.join(self.path, 'manz_waldk.a01.gz')
     data = np.loadtxt(gzip.open(file), dtype='float32')
     df, ntdownmax, ntupevent, thr1, thr2, npreset_len, np_dur = \
         (200.0, 20, 60, 7.0, 12.0, 100, 100)
     nptime, pfm = pkBaer(data, df, ntdownmax, ntupevent,
                          thr1, thr2, npreset_len, np_dur)
     self.assertEquals(nptime, 17545)
     self.assertEquals(pfm, 'IPU0')