Skip to content

Commit

Permalink
use .get() for d parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisjonesBSU committed Apr 15, 2024
1 parent a42748e commit 4497a3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gmso/external/convert_hoomd.py
Original file line number Diff line number Diff line change
Expand Up @@ -1379,7 +1379,7 @@ def _parse_periodic_improper(
"k": itype.parameters["k"],
"chi0": itype.parameters["phi_eq"],
"n": itype.parameters["n"],
"d": 1.0,
"d": itype.parameters.get("d", 1.0),
}
return container

Expand Down

0 comments on commit 4497a3c

Please sign in to comment.