Ejemplo n.º 1
0
 def get_DRATS(self):
     DRATS, DRATS_prime = lib_ptrm.get_DRATS(
         self.pars['sum_ptrm_checks'], self.pars['sum_abs_ptrm_checks'],
         self.x_Arai, self.end)
     self.pars['DRATS'] = DRATS
     self.pars['DRATS_prime'] = DRATS_prime
     return DRATS
Ejemplo n.º 2
0
 def test_DRATS(self):
     # ref_DRATS = .9
     ref_DRATS = (1.0 / 7.0) * 100.0
     ref_DRATS_prime = (5.0 / 7.0) * 100.0
     end = 4
     DRATS, DRATS_prime = lib_ptrm.get_DRATS(self.ref_sum_ptrm_check, self.ref_sum_abs_ptrm_check, self.x_Arai, end)
     self.assertAlmostEqual(ref_DRATS, DRATS)
     self.assertAlmostEqual(ref_DRATS_prime, DRATS_prime)
Ejemplo n.º 3
0
 def test_DRATS(self):
     #ref_DRATS = .9
     ref_DRATS = (old_div(1., 7.)) * 100.
     ref_DRATS_prime = (old_div(5., 7.)) * 100.
     end = 4
     DRATS, DRATS_prime = lib_ptrm.get_DRATS(self.ref_sum_ptrm_check, self.ref_sum_abs_ptrm_check, self.x_Arai, end)
     self.assertAlmostEqual(ref_DRATS, DRATS)
     self.assertAlmostEqual(ref_DRATS_prime, DRATS_prime)
Ejemplo n.º 4
0
 def get_DRATS(self):
     DRATS, DRATS_prime = lib_ptrm.get_DRATS(self.pars['sum_ptrm_checks'], self.pars['sum_abs_ptrm_checks'], self.x_Arai, self.end)
     self.pars['DRATS'] = DRATS
     self.pars['DRATS_prime'] = DRATS_prime
     return DRATS