Skip to content

Commit

Permalink
Merge branch 'main' into coulomb
Browse files Browse the repository at this point in the history
  • Loading branch information
peastman committed Feb 20, 2024
2 parents 1a73cb7 + 5a4fca7 commit b619e0b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions examples/TensorNet-ANI2X.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ num_rbf: 32
num_workers: 4
output_model: Scalar
precision: 32
prior_model: null
remove_ref_energy: true
rbf_type: expnorm
redirect: false
Expand Down
4 changes: 2 additions & 2 deletions examples/openmm-integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ def forward(self, positions):

system = System()
# Create an OpenMM system and add the TorchForce
for i in range(pdb.topology.getNumAtoms()):
system.addParticle(1.0)
for atom in pdb.topology.atoms():
system.addParticle(atom.element.mass)
system.addForce(torch_force)
integrator = LangevinMiddleIntegrator(298.15*kelvin, 1/picosecond, 2*femtosecond)
platform = Platform.getPlatformByName('CPU')
Expand Down
2 changes: 1 addition & 1 deletion tests/test_examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def test_example_yamls(fname):
args = yaml.load(f, Loader=yaml.FullLoader)

prior = None
if "prior_model" in args and args["prior_model"] is not None:
if args["prior_model"] is not None:
dataset = DummyDataset(has_atomref=True)
prior = getattr(priors, args["prior_model"])(dataset=dataset)

Expand Down

0 comments on commit b619e0b

Please sign in to comment.