예제 #1
0
파일: spd.py 프로젝트: headmetal/PmagPy
 def get_Z(self):
     x_segment, y_segment = self.x_Arai_segment, self.y_Arai_segment
     x_int, y_int = self.pars['specimen_XT'], self.pars['specimen_YT']
     slope = self.pars['specimen_b']
     Z = lib_arai.get_Z(x_segment, y_segment, x_int, y_int, slope)
     self.pars['Z'] = Z
     return Z
예제 #2
0
 def get_Z(self):
     x_segment, y_segment = self.x_Arai_segment, self.y_Arai_segment
     x_int, y_int = self.pars['specimen_XT'], self.pars['specimen_YT']
     slope = self.pars['specimen_b']
     Z = lib_arai.get_Z(x_segment, y_segment, x_int, y_int, slope)
     self.pars['Z'] = Z
     return Z
예제 #3
0
 def testZ(self):
     # x_segment, y_segment, x_int, y_int, slope
     result = lib_arai.get_Z(self.x, self.y, self.x_int, self.y_int,
                             self.slope)
     self.assertAlmostEqual(self.Z, result)
 def testZ(self):
     # x_segment, y_segment, x_int, y_int, slope
     result = lib_arai.get_Z(self.x, self.y, self.x_int, self.y_int, self.slope)
     self.assertAlmostEqual(self.Z, result)