Skip to content

Commit

Permalink
Update src/biotite/structure/bonds.pyx
Browse files Browse the repository at this point in the history
Co-authored-by: Patrick Kunzmann <[email protected]>
  • Loading branch information
nscorley and padix-key authored Dec 10, 2024
1 parent 816849d commit 9830bee
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/biotite/structure/bonds.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -1647,7 +1647,11 @@ def connect_via_residue_names(atoms, bint inter_residue=True,
res_names[curr_start_i], {}
)

atom_names_in_res = atom_names[curr_start_i : next_start_i]
std_name_mapping = get_std_atom_names(res_names[curr_start_i])
atom_names_in_res = {
std_name_mapping[atom_name] for atom_name
in atom_names[curr_start_i : next_start_i]
}

# Check if we should use alternative atom names
std_atom_ids = get_from_ccd(
Expand Down

0 comments on commit 9830bee

Please sign in to comment.