示例#1
0
文件: spd.py 项目: headmetal/PmagPy
 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)