Skip to content

Commit

Permalink
Print metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
frostedoyster committed Jul 5, 2024
1 parent 94e0973 commit 3ea577a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ def get_metatensor_force(

model = load_atomistic_model(path, extensions_directory=extensions_directory)

# Print the model's metadata
print(model.metadata().print())

# Get the atomic numbers of the ML region.
all_atoms = list(topology.atoms())
atomic_types = [atom.element.atomic_number for atom in all_atoms]
Expand Down
2 changes: 0 additions & 2 deletions python/metatensor-torch/tests/atomistic/openmm_force.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,6 @@ def _check_against_ase(tmpdir, atoms):
atoms.set_calculator(calculator)
ase_forces = atoms.get_forces()

print(openmm_forces)
print(ase_forces)
assert np.allclose(openmm_forces, ase_forces)


Expand Down

0 comments on commit 3ea577a

Please sign in to comment.