From 10d2e00d167f8390b03632efb03bc9f77b796042 Mon Sep 17 00:00:00 2001 From: richardtran415 Date: Mon, 3 May 2021 16:59:09 -0400 Subject: [PATCH] more formatting --- pymatgen/core/surface.py | 2 +- pymatgen/core/tests/test_surface.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pymatgen/core/surface.py b/pymatgen/core/surface.py index aaa366fa7de..f4e48bc9107 100644 --- a/pymatgen/core/surface.py +++ b/pymatgen/core/surface.py @@ -316,7 +316,7 @@ def is_symmetric(self, symprec=0.1): if ( sg.is_laue() or any(op.translation_vector[2] != 0 for op in symmops) - or any(np.alltrue(op.rotation_matrix[2] == np.array([0,0,-1])) for op in symmops) + or any(np.alltrue(op.rotation_matrix[2] == np.array([0, 0, -1])) for op in symmops) ): # Check for inversion symmetry. Or if sites from surface (a) can be translated # to surface (b) along the [hkl]-axis, surfaces are symmetric. Or because the diff --git a/pymatgen/core/tests/test_surface.py b/pymatgen/core/tests/test_surface.py index a6636ccbb0e..9afaa402a69 100644 --- a/pymatgen/core/tests/test_surface.py +++ b/pymatgen/core/tests/test_surface.py @@ -62,7 +62,7 @@ def setUp(self): m = [[3.913449, 0, 0], [0, 3.913449, 0], [0, 0, 5.842644]] latt = Lattice(m) fcoords = [[0.5, 0, 0.222518], [0, 0.5, 0.777482], [0, 0, 0], [0, 0, 0.5], [0.5, 0.5, 0]] - non_laue = Structure(latt, ['Nb', 'Nb', 'N', 'N', 'N'], fcoords) + non_laue = Structure(latt, ["Nb", "Nb", "N", "N", "N"], fcoords) self.ti = Ti self.agfcc = Ag_fcc