cd8ee58da1f0d8ab1fdb6abd8b7a19759878604a,regtests/sinematrix.py,SineMatrixTests,test_parallel_sparse,#SineMatrixTests#,111

Before Change



        // Non-flattened output
        desc = SineMatrix(n_atoms_max=5, permutation="none", flatten=False, sparse=True)
        output = [x.toarray() for x in desc.create(
            system=samples,
            n_jobs=2,
        )]
        assumed = np.empty((2, 5, 5))
        assumed[0] = desc.create(samples[0]).toarray()
        assumed[1] = desc.create(samples[1]).toarray()
        self.assertTrue(np.allclose(np.array(output), assumed))

After Change



        // Non-flattened output
        desc = SineMatrix(n_atoms_max=5, permutation="none", flatten=False, sparse=True)
        output = desc.create(
            system=samples,
            n_jobs=2,
        ).todense()
        assumed = np.empty((2, 5, 5))
        assumed[0] = desc.create(samples[0]).todense()
        assumed[1] = desc.create(samples[1]).todense()
        self.assertTrue(np.allclose(np.array(output), assumed))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 8

Instances


Project Name: SINGROUP/dscribe
Commit Name: cd8ee58da1f0d8ab1fdb6abd8b7a19759878604a
Time: 2021-02-05
Author: lauri.himanen@gmail.com
File Name: regtests/sinematrix.py
Class Name: SineMatrixTests
Method Name: test_parallel_sparse


Project Name: SINGROUP/dscribe
Commit Name: 24c799a9ad0f0e4ebfdaafeeee3c20c119059498
Time: 2021-02-05
Author: lauri.himanen@gmail.com
File Name: regtests/coulombmatrix.py
Class Name: CoulombMatrixTests
Method Name: test_parallel_sparse


Project Name: SINGROUP/dscribe
Commit Name: 7f67c4ba6e955bef7d5645b8317a493281881b3d
Time: 2021-02-05
Author: lauri.himanen@gmail.com
File Name: regtests/ewaldsummatrix.py
Class Name: EwaldSumMatrixTests
Method Name: test_parallel_sparse