Skip to content

Commit

Permalink
Update test_ener_spin_model.py
Browse files Browse the repository at this point in the history
  • Loading branch information
iProzd committed Feb 25, 2024
1 parent 6179824 commit 4f67f78
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions source/tests/pt/model/test_ener_spin_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ class SpinTest:
def setUp(self):
self.prec = 1e-10
natoms = 5
self.ntypes = 3 # ["O", "H", "B"] for test
self.cell = 4.0 * torch.eye(3, dtype=dtype, device=env.DEVICE).unsqueeze(0)
self.coord = 3.0 * torch.rand(
[natoms, 3], dtype=dtype, device=env.DEVICE
Expand Down

0 comments on commit 4f67f78

Please sign in to comment.