Example #1
0
 def get_theta(self):
     b_lab_dir = [self.B_lab_dir[0], self.B_lab_dir[1], 1.]
     ChRM = self.pars['best_fit_vector_Free'] # GREIG switched to this
     theta = lib_direct.get_theta(b_lab_dir, ChRM)
     self.pars['theta'] = theta
     return theta
Example #2
0
 def get_theta(self):
     b_lab_dir = [self.B_lab_dir[0], self.B_lab_dir[1], 1.]
     ChRM = self.pars['best_fit_vector_Free'] # GREIG switched to this
     theta = lib_direct.get_theta(b_lab_dir, ChRM)
     self.pars['theta'] = theta
     return theta
 def test_theta(self):  # FINISH ME!!!!!
     #print "testing with, B_lab_dir", self.B_lab_dir, "ChRM", self.ChRM
     result = lib_direct.get_theta(self.B_lab_dir, self.ChRM)
     #print "test theta result", result
     self.assertAlmostEqual(result, thing.pars['theta'])
 def test_theta(self):  # FINISH ME!!!!!
     result = lib_direct.get_theta(self.B_lab_dir, self.ChRM)
     self.assertAlmostEqual(result, PintPars_example.pars['specimen_theta'])
 def test_theta(self):  # FINISH ME!!!!!
     result = lib_direct.get_theta(self.B_lab_dir, self.ChRM)
     self.assertAlmostEqual(result, PintPars_example.pars['specimen_theta'])