Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions news/no-resids-limit-from-topology.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
**Added:**

* <news item>

**Changed:**

* Remove unnecessary limit on residues ids (``resids``) when getting mappings from topology in ``topology_helpers.py`` utility module.

**Deprecated:**

* <news item>

**Removed:**

* <news item>

**Fixed:**

* <news item>

**Security:**

* <news item>
9 changes: 3 additions & 6 deletions openfe/protocols/openmm_rfe/_rfe_utils/topologyhelpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -387,13 +387,10 @@ def _get_indices(topology, resids):
----------
topology : openmm.app.Topology
Topology to search from.
residue_name : str
Name of the residue to get the indices for.
resids : npt.NDArrayLike
An array of residue indices which match the residues we want to get
atom indices for.
"""
# TODO: remove, this shouldn't be necessary anymore
if len(resids) > 1:
raise ValueError("multiple residues were found")

# create list of openmm residues
top_res = [r for r in topology.residues() if r.index in resids]

Expand Down
Loading