Skip to content

Improve _match_common_residues()#70

Merged
padix-key merged 1 commit intomainfrom
match-common-residues
Jan 13, 2026
Merged

Improve _match_common_residues()#70
padix-key merged 1 commit intomainfrom
match-common-residues

Conversation

@padix-key
Copy link
Collaborator

This PR slightly improves _match_common_residues():

Instead of replacing the aligned_mask part of the AtomArray with a reordered AtomArray, a global index array is computed first and then applied to the entire AtomArray. This has the advantages

  • of being faster
  • and preserving the bonds between the aligned and non-aligned part in AtomArray.bonds.

@Jaakik Jaakik self-requested a review January 13, 2026 21:54
@padix-key padix-key merged commit 47c9c72 into main Jan 13, 2026
6 checks passed
@padix-key padix-key deleted the match-common-residues branch January 13, 2026 21:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants