9b1af381e74ae4e967c0a3878353b3256f0aadab,pykrige/test.py,TestPyKrige,test_core_adjust_for_anisotropy_3d,#TestPyKrige#,66

Before Change


        x = np.array([1.0, 0.0, 0.0])
        y = np.array([0.0, 1.0, 0.0])
        z = np.array([0.0, 0.0, 1.0])
        rotated_x, rotated_y, rotated_z = core.adjust_for_anisotropy_3d(x, y, z, 0., 0., 0., 2., 2., 90., 0., 0.)
        self.assertTrue(np.allclose(rotated_x, np.array([1., 0., 0.])))
        self.assertTrue(np.allclose(rotated_y, np.array([0., 0., 2.])))
        self.assertTrue(np.allclose(rotated_z, np.array([0., -2., 0.])))

After Change


        self.assertTrue(np.allclose(X_adj[:, 0], np.array([1., 0., 0.])))
        self.assertTrue(np.allclose(X_adj[:, 1], np.array([0., 0., 2.])))
        self.assertTrue(np.allclose(X_adj[:, 2], np.array([0., -2., 0.])))
        X_adj = core._adjust_for_anisotropy(X, [0., 0., 0.], [2., 2.], [0., 90., 0.])
        self.assertTrue(np.allclose(X_adj[:, 0], np.array([0., 0., -1.])))
        self.assertTrue(np.allclose(X_adj[:, 1], np.array([0., 2., 0.])))
        self.assertTrue(np.allclose(X_adj[:, 2], np.array([2., 0., 0.])))
        X_adj = core._adjust_for_anisotropy(X, [0., 0., 0.], [2., 2.], [0., 0., 90.])
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: bsmurphy/PyKrige
Commit Name: 9b1af381e74ae4e967c0a3878353b3256f0aadab
Time: 2017-01-27
Author: rth.yurchak@gmail.com
File Name: pykrige/test.py
Class Name: TestPyKrige
Method Name: test_core_adjust_for_anisotropy_3d


Project Name: bsmurphy/PyKrige
Commit Name: 9b1af381e74ae4e967c0a3878353b3256f0aadab
Time: 2017-01-27
Author: rth.yurchak@gmail.com
File Name: pykrige/test.py
Class Name: TestPyKrige
Method Name: test_core_adjust_for_anisotropy


Project Name: bsmurphy/PyKrige
Commit Name: 9b1af381e74ae4e967c0a3878353b3256f0aadab
Time: 2017-01-27
Author: rth.yurchak@gmail.com
File Name: pykrige/uk.py
Class Name: UniversalKriging
Method Name: __init__