Skip to content

fix: mdtraj.join call in reconstruct_sidechains#160

Merged
josejimenezluna merged 2 commits intomicrosoft:mainfrom
ahmedselim2017:mdtraj_join
Sep 9, 2025
Merged

fix: mdtraj.join call in reconstruct_sidechains#160
josejimenezluna merged 2 commits intomicrosoft:mainfrom
ahmedselim2017:mdtraj_join

Conversation

@ahmedselim2017
Copy link
Copy Markdown
Contributor

Hi, in the reconstruct_sidechains function if the first mdtraj.join call fails, each frame of the trajectory is joined one by one using mdtraj.join(concatenated, frame, check_topology=False) call. But as the mdtraj.join function needs the frames as an iterable in the first argument not as multiple argument (https://mdtraj.org/1.9.4/api/generated/mdtraj.join.html), the call fails with TypeError: join() got multiple values for argument 'check_topology'. To fix this, I have changed mdtraj.join(concatenated, frame, check_topology=False) to mdtraj.join([concatenated, frame], check_topology=False).

@thempel
Copy link
Copy Markdown
Collaborator

thempel commented Sep 8, 2025

Yes, this is a bug. Thanks for your contribution!

Closes #162.

@thempel thempel enabled auto-merge (squash) September 8, 2025 16:12
@thempel thempel disabled auto-merge September 9, 2025 11:35
@thempel thempel enabled auto-merge (squash) September 9, 2025 11:35
@josejimenezluna josejimenezluna enabled auto-merge (squash) September 9, 2025 12:00
@josejimenezluna josejimenezluna merged commit 4b609d8 into microsoft:main Sep 9, 2025
4 checks passed
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.

3 participants