Exemplo n.º 1
0
 def test_regression_of_gamma_1d(self):    
     self.gamma1d = np.round(calc_gamma(
         self.coords[2], self.reference[5,5,:],
         self.coords[2], self.evaluation[5,5,:],
         0.3, 0.03), decimals=3)
         
     assert np.all(self.expected_gamma[5,5,:] == self.gamma1d)
Exemplo n.º 2
0
 def test_regression_of_gamma_3d(self):    
     self.gamma3d = np.round(calc_gamma(
         self.coords, self.reference,
         self.coords, self.evaluation,
         0.3, 0.03), decimals=3)
         
     assert np.all(self.expected_gamma == self.gamma3d)