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
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)