804a8accb33a5bfe440c3e3b4c07d788bf7901eb,regtests/derivatives.py,SoapDerivativeComparisonTests,test_combinations,#SoapDerivativeComparisonTests#,438

Before Change


        self.assertTrue(np.allclose(d_n, d_a, rtol=1e-6, atol=1e-6))

        // Derivatives for all atoms, only some atoms act as centers
        derivatives_n, d_n = soap.derivatives(system, positions=[2, 0, 1], method="numerical")
        derivatives_a, d_a = soap.derivatives(system, positions=[2, 0, 1],  method="analytical")
        self.assertTrue(np.allclose(derivatives_n, derivatives_a, rtol=1e-6, atol=1e-6))
        self.assertTrue(np.allclose(d_n, d_a, rtol=1e-6, atol=1e-6))

After Change



        // Derivatives for some atoms, all atoms act as centers
        derivatives_n, d_n = soap.derivatives(system, include=include, method="numerical")
        derivatives_a, d_a = soap.derivatives(system, include=include, method="analytical")
        self.assertTrue(np.allclose(derivatives_n, derivatives_a, rtol=1e-6, atol=1e-6))
        self.assertTrue(np.allclose(d_n, d_a, rtol=1e-6, atol=1e-6))

        // Mixed set of derivatives and centers
        derivatives_n, d_n = soap.derivatives(system, positions=centers, include=include, method="numerical")
        derivatives_a, d_a = soap.derivatives(system, positions=centers, include=include, method="analytical")
        self.assertTrue(np.allclose(derivatives_n, derivatives_a, rtol=1e-6, atol=1e-6))
        self.assertTrue(np.allclose(d_n, d_a, rtol=1e-6, atol=1e-6))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: SINGROUP/dscribe
Commit Name: 804a8accb33a5bfe440c3e3b4c07d788bf7901eb
Time: 2021-01-23
Author: lauri.himanen@gmail.com
File Name: regtests/derivatives.py
Class Name: SoapDerivativeComparisonTests
Method Name: test_combinations


Project Name: SINGROUP/dscribe
Commit Name: 804a8accb33a5bfe440c3e3b4c07d788bf7901eb
Time: 2021-01-23
Author: lauri.himanen@gmail.com
File Name: regtests/derivatives.py
Class Name: SoapDerivativeComparisonTests
Method Name: test_combinations


Project Name: SINGROUP/dscribe
Commit Name: f77b27b781c4eebd332dee7c56941f38b1dce44d
Time: 2021-01-17
Author: lauri.himanen@gmail.com
File Name: regtests/derivatives.py
Class Name: SoapDerivativeComparisonTests
Method Name: test_combinations


Project Name: SINGROUP/dscribe
Commit Name: 333f897e11c9c78a249b1040bd2342060d6508bb
Time: 2021-02-02
Author: lauri.himanen@gmail.com
File Name: regtests/derivatives.py
Class Name: SoapDerivativeTests
Method Name: test_interface