Skip to content

Commit

Permalink
couple of small fix ups
Browse files Browse the repository at this point in the history
  • Loading branch information
richardjgowers committed Oct 13, 2023
1 parent 4349992 commit d894d6f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions openfe/protocols/openmm_rfe/equil_rfe_methods.py
Original file line number Diff line number Diff line change
Expand Up @@ -556,8 +556,8 @@ def run(self, *, dry=False, verbose=True,
# Note: by default this is cached to ctx.shared/db.json so shouldn't
# incur too large a cost
self.logger.info("Parameterizing molecules")
for mol in chain(off_small_mols['stateA'], off_small_mols['stateB'],
*off_small_mols['both']):
for mol in chain([off_small_mols['stateA'], off_small_mols['stateB'],
*off_small_mols['both']]):
# robustly calculate partial charges;
try:
# try and follow official spec method
Expand Down Expand Up @@ -597,8 +597,8 @@ def run(self, *, dry=False, verbose=True,
# a. get the topology
stateB_topology, stateB_alchem_resids = _rfe_utils.topologyhelpers.combined_topology(
stateA_topology,
mapping.componentB.to_openff().to_topology().to_openmm(),
exclude_resids=comp_resids[mapping.componentA],
off_small_mols['stateB'].to_topology().to_openmm(),
exclude_resids=comp_resids[mapping.componentA], # TODO: Fix this
)

# b. get a list of small molecules for stateB
Expand Down

0 comments on commit d894d6f

Please sign in to comment.