Skip to content

Commit

Permalink
Update to Ace dataset test
Browse files Browse the repository at this point in the history
  • Loading branch information
RaulPPelaez committed Jun 28, 2024
1 parent 9a5ddf1 commit 66a84d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_datasets.py
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ def test_ace(tmpdir):
f2.attrs["layout_version"] = "2.0"
f2.attrs["name"] = "sample_molecule_data_v2"
master_mol_group = f2.create_group("master_molecule_group")
for m in range(3): # Three molecules
for m in range(4):
mol = master_mol_group.create_group(f"mol_{m+1}")
mol["atomic_numbers"] = [1, 6, 8] # H, C, O
mol["formal_charges"] = [0, 0, 0] # Neutral charges
Expand All @@ -294,6 +294,6 @@ def test_ace(tmpdir):
mol["dipole_moments"] = np.random.random((2, 3))
mol["dipole_moments"].attrs["units"] = "e*Å"
dataset_v2 = Ace(root=tmpdir, paths=tmpfilename_v2)
assert len(dataset_v2) == 6
assert len(dataset_v2) == 8
f2.flush()
f2.close()

0 comments on commit 66a84d2

Please sign in to comment.