Skip to content

Commit

Permalink
Merge pull request #1 from ilyes319/patch-1
Browse files Browse the repository at this point in the history
Update openmm.py
  • Loading branch information
davkovacs authored Sep 27, 2022
2 parents 400acc1 + b62aad0 commit 5f0bdaa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mace/calculators/openmm.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def __init__(self, model_path, atoms_obj):
def forward(self, positions):
sender, receiver, unit_shifts = primitive_neighbor_list_torch(
quantities="ijS",
pbc=[False, False, False],
pbc=(False, False, False),
cell=self.inp_dict["cell"],
positions=positions,
cutoff=self.r_max,
Expand Down Expand Up @@ -72,4 +72,4 @@ def forward(self, positions):
#inp_dict_this_config["shifts"] = shifts
#inp_dict_this_config[""] =
res = self.model(inp_dict_this_config)
return (res["energy"], res["forces"])
return (res["energy"], res["forces"])

0 comments on commit 5f0bdaa

Please sign in to comment.