Skip to content

Commit

Permalink
fix workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
qzhu2017 committed Oct 3, 2024
1 parent e23f0b6 commit 821ef26
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_SO3.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def get_perturbed_xtal(struc, p0, p1, eps):
p_struc.set_positions(pos)
return p_struc

def test_dPdR_xtal(xtal, nmax, lmax, rc, eps):
def get_dPdR_xtal(xtal, nmax, lmax, rc, eps):
p0 = SO3(nmax=nmax, lmax=lmax, rcut=rc).calculate(xtal, derivative=True)
shp = p0['x'].shape
array1 = p0['dxdr']
Expand Down Expand Up @@ -82,12 +82,12 @@ class TestXtal(unittest.TestCase):
def test_dPdR_diamond(self):
c = pyxtal()
c.from_prototype('diamond')
test_dPdR_xtal(c.to_ase(), nmax, lmax, rc, eps)
get_dPdR_xtal(c.to_ase(), nmax, lmax, rc, eps)

def test_dPdR_graphite(self):
c = pyxtal()
c.from_prototype('graphite')
test_dPdR_xtal(c.to_ase(), nmax, lmax, rc, eps)
get_dPdR_xtal(c.to_ase(), nmax, lmax, rc, eps)


if __name__ == "__main__":
Expand Down

0 comments on commit 821ef26

Please sign in to comment.