cae696567b951907e79c5d32e0f14f8f626f7fe6,regtests/mbtr.py,MBTRTests,test_symmetries,#MBTRTests#,404

Before Change


        )

        // Rotational check
        molecule = H2O.copy()
        features = desc.create(molecule)

        for rotation in ["x", "y", "z"]:
            molecule.rotate(45, rotation)
            rot_features = desc.create(molecule)
            deviation = np.max(np.abs(features - rot_features))
            self.assertTrue(deviation < 1e-6)

        // Translation check
        for translation in [[1.0, 1.0, 1.0], [-5.0, 5.0, -5.0], [1.0, 1.0, -10.0]]:
            molecule.translate(translation)
            trans_features = desc.create(molecule)
            deviation = np.max(np.abs(features - trans_features))
            self.assertTrue(deviation < 1e-6)

    def test_unit_cells(self):

After Change


        self.assertTrue(self.is_rotationally_symmetric(desc))

        // Translational
        self.assertTrue(self.is_translationally_symmetric(desc))

        // Permutational
        self.assertTrue(self.is_permutation_symmetric(desc))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: SINGROUP/dscribe
Commit Name: cae696567b951907e79c5d32e0f14f8f626f7fe6
Time: 2018-07-31
Author: lauri.himanen@aalto.fi
File Name: regtests/mbtr.py
Class Name: MBTRTests
Method Name: test_symmetries


Project Name: nilmtk/nilmtk
Commit Name: 0ac7cecce4f147011037fcb79dfd57867b8329a8
Time: 2014-12-19
Author: jack-list@xlk.org.uk
File Name: nilmtk/metergroup.py
Class Name: MeterGroup
Method Name: plot_good_sections


Project Name: SINGROUP/dscribe
Commit Name: cae696567b951907e79c5d32e0f14f8f626f7fe6
Time: 2018-07-31
Author: lauri.himanen@aalto.fi
File Name: regtests/coulombmatrix.py
Class Name: CoulombMatrixTests
Method Name: test_symmetries