def test_fold_point(self): self.assertTrue( scipy.allclose(fold_point([0., -0.5, 0.5], lattice=self.rec_latt), self.rec_latt.get_cartesian_coords([0., 0.5, 0.5]))) self.assertTrue( scipy.allclose(fold_point([0.1, -0.6, 0.2], lattice=self.rec_latt), self.rec_latt.get_cartesian_coords([0.1, 0.4, 0.2])))
def test_fold_point(self): self.assertTrue( scipy.allclose(fold_point([0., -0.5, 0.5], lattice=self.rec_latt), self.rec_latt.get_cartesian_coords([0., 0.5, 0.5]))) self.assertTrue( scipy.allclose(fold_point([0.1, -0.6, 0.2], lattice=self.rec_latt), self.rec_latt.get_cartesian_coords([0.1, 0.4, 0.2])))