Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
chore: change docstring
  • Loading branch information
stevenhua0320 committed Mar 7, 2026
commit 9751d1e5918457a0ee422cf063352b06516310be
6 changes: 2 additions & 4 deletions tests/test_atom.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def test___init__(self):
# return

def test_msdLat(self):
"""Check Atom.msd_latt (and deprecated Atom.msdLat alias)."""
"""Check Atom.msdLat."""
hexagonal = Lattice(1, 1, 1, 90, 90, 120)
atom_1 = Atom("C", [0, 0, 0], lattice=hexagonal, Uisoequiv=0.0123)
assert atom_1.msdLat([1, 2, 3]) == pytest.approx(0.0123, rel=0, abs=1e-15)
Expand All @@ -95,10 +95,9 @@ def test_msdLat(self):
vl = hexagonal.fractional(vc)

assert atom_2.msdLat(vl) == pytest.approx(atom_2.msd_cart(vc), rel=1e-13, abs=1e-13)
return

def test_msdCart(self):
"""Check Atom.msd_cart (and deprecated Atom.msdCart alias)."""
"""Check Atom.msdCart."""
hexagonal = Lattice(1, 1, 1, 90, 90, 120)
atom_1 = Atom("C", [0, 0, 0], lattice=hexagonal, Uisoequiv=0.0456)
assert atom_1.msdCart([1, 0, 0]) == pytest.approx(0.0456, rel=0, abs=1e-15)
Expand All @@ -117,7 +116,6 @@ def test_msdCart(self):

vc = numpy.array([0.4, 1.1, -0.6], dtype=float)
assert atom_2.msdCart(vc) == pytest.approx(atom_2.msdCart(3.7 * vc), rel=1e-13, abs=1e-13)
return

def test_xyz_cartn(self):
"""Check Atom.xyz_cartn property."""
Expand Down
Loading