Skip to content

Commit 865c42c

Browse files
authored
update to openff_unconstrained-2.1.0 as the default ff (#201)
* update to openff_unconstrained-2.1.0 as the default ff * update to newest ff
1 parent 305260c commit 865c42c

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

espaloma/graphs/deploy.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,18 +29,19 @@
2929
# =============================================================================
3030

3131

32-
def load_forcefield(forcefield="openff_unconstrained-2.0.0"):
32+
def load_forcefield(forcefield="openff_unconstrained-2.2.1"):
3333
# get a forcefield
3434
try:
3535
ff = ForceField("%s.offxml" % forcefield)
36-
except:
36+
except Exception as e:
37+
print(e)
3738
raise NotImplementedError
3839
return ff
3940

4041

4142
def openmm_system_from_graph(
4243
g,
43-
forcefield="openff_unconstrained-2.0.0",
44+
forcefield="openff_unconstrained-2.1.1",
4445
suffix="",
4546
charge_method="nn",
4647
create_system_kwargs={},
@@ -52,7 +53,7 @@ def openmm_system_from_graph(
5253
g : `espaloma.Graph`
5354
Input graph.
5455
55-
forcefield : `str`
56+
forcefield : `str`, optional, default='openff_unconstrained-2.1.1'
5657
Name of the force field. Have to be Open Force Field.
5758
(this forcefield will be used to assign nonbonded parameters, but all of its valence parameters will be overwritten)
5859

0 commit comments

Comments
 (0)