Пример #1
0
 def get_CDRAT(self):
     CDRAT, CDRAT_prime = lib_ptrm.get_CDRAT(self.pars['length_best_fit_line'], self.pars['sum_ptrm_checks'], 
                                             self.pars['sum_abs_ptrm_checks'])
     self.pars['CDRAT'], self.pars['CDRAT_prime'] = CDRAT, CDRAT_prime
     return CDRAT, CDRAT_prime
Пример #2
0
 def test_CDRAT(self):
     CDRAT, CDRAT_prime = lib_ptrm.get_CDRAT(self.ref_L, self.ref_sum_ptrm_check, self.ref_sum_abs_ptrm_check)
     ref_CDRAT, ref_CDRAT_prime = (1.0 / self.ref_L) * 100.0, (5.0 / self.ref_L) * 100
     self.assertAlmostEqual(ref_CDRAT, CDRAT)
     self.assertAlmostEqual(ref_CDRAT_prime, CDRAT_prime)
Пример #3
0
 def get_CDRAT(self):
     CDRAT, CDRAT_prime = lib_ptrm.get_CDRAT(self.pars['length_best_fit_line'], self.pars['sum_ptrm_checks'],
                                             self.pars['sum_abs_ptrm_checks'])
     self.pars['CDRAT'], self.pars['CDRAT_prime'] = CDRAT, CDRAT_prime
     return CDRAT, CDRAT_prime
Пример #4
0
 def test_CDRAT(self):
     CDRAT, CDRAT_prime = lib_ptrm.get_CDRAT(self.ref_L, self.ref_sum_ptrm_check, self.ref_sum_abs_ptrm_check)
     ref_CDRAT, ref_CDRAT_prime = (old_div(1., self.ref_L)) * 100., (old_div(5., self.ref_L)) * 100
     self.assertAlmostEqual(ref_CDRAT, CDRAT)
     self.assertAlmostEqual(ref_CDRAT_prime, CDRAT_prime)