Repository navigation
Fix issue #543 and #544 - #545
Merged
Merged
Conversation
This was referenced Nov 25, 2026
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #543. Closes #544.
patchIntrascalechecked every atom pair in each end state, which took ~50 s per call for a protein the size of thrombin (4,622 atoms). It now only checks pairs that aren't (1,1) in at least one of the two matrices, using each CutGroup-pair block's non-default elements.While timing this, I found that the
SparseMatrixhash returned 0 for almost every key, so every entry shared a single bucket. This went unnoticed for small CutGroups but made lookups and inserts linear in the number of entries for large ones, e.g. the single CutGroup produced by a non-ROI BioSimSpace merge. The hash now uses Qt's 64-bitqHashon the combined index.Timings for thrombin:
patchIntrascale, one CutGroup per residuepatchIntrascale, single CutGroupCLJNBPairs(connectivity, ...), single CutGroupResults match the old implementation exactly for every atom pair across four test cases, including partial mappings. I added
tests/io/test_patch_intrascale.py, which requires both scan directions. The IO, MM, convert and morph tests give the same results as ondevel.Changing the hash changes
SparseMatrixiteration order. The only order-dependent code is the GROMACS topology writer's fallback for molecules without connectivity, which will write the same[ pairs ]lines in a different order.develinto this branch before issuing this pull request (e.g. by runninggit pull origin devel): [y]LICENSEfile: [y]