Closed slochower closed 3 months ago
@slochower the fix looks good! Thanks!
@slochower Could you please merge the main branch into this PR? I’ve pushed a change that should fix the GitHub Actions failures.
@SimonBoothroyd yeah let's merge
Yes -- thanks both.
Description
There are two bugs, I think. See #15.
ligand_1_ref_idxs
withligand_2
when checking for receptor reference atoms.ligand_1_ref_idxs
withligand_2_ref_idxs
. The reference indices for ligand 2 are offset by the number of atoms in ligand 1 (I guess this probably happens to index into a combined topology of both ligands at some point in the code). Butcheck_receptor_idxs
will eventually try to index the provided ligand with the provided index. So, before calling this function, the indices need to be "un-offset" so you don't end up with anIndexError
.Status