Skip to content

Commit

Permalink
Fixup 6020610: shorten the test
Browse files Browse the repository at this point in the history
  • Loading branch information
briling committed Dec 4, 2023
1 parent 6020610 commit ffcf669
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_slatm.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@
def test_slatm_global():
path = os.path.dirname(os.path.realpath(__file__))
v0 = np.load(f'{path}/data/slatm/slatm_global.npy')
xyzs = [f for f in sorted(glob.glob(f"{path}/data/slatm/*.xyz"))]
xyzs = sorted(glob.glob(f"{path}/data/slatm/*.xyz"))
v = get_slatm_for_dataset(xyzs, progress=False, global_repr=True)
assert(np.linalg.norm(v-v0)<1e-10)


def test_slatm_local():
path = os.path.dirname(os.path.realpath(__file__))
v0 = np.load(f'{path}/data/slatm/slatm_local.npy')
xyzs = [f for f in sorted(glob.glob(f"{path}/data/slatm/*.xyz"))]
xyzs = sorted(glob.glob(f"{path}/data/slatm/*.xyz"))
v = get_slatm_for_dataset(xyzs, progress=False)
assert(np.linalg.norm(v-v0)<1e-10)

Expand Down

0 comments on commit ffcf669

Please sign in to comment.