Skip to content

Fix duplicate registration of metatypes#414

Merged
lohedges merged 3 commits intodevelfrom
fix_duplicate_registers
Mar 25, 2026
Merged

Fix duplicate registration of metatypes#414
lohedges merged 3 commits intodevelfrom
fix_duplicate_registers

Conversation

@lohedges
Copy link
Contributor

This PR fixes duplicate converter registrations in the Python wrappers for OpenMM-related classes, which caused RuntimeWarning: to-Python converter already registered warnings at import time. The autogeneration script (scanheaders.py) has also been updated to deduplicate metatypes so the issue does not recur when wrappers are regenerated.

  • I confirm that I have merged the latest version of devel into this branch before issuing this pull request (e.g. by running git pull origin devel): [y]
  • I confirm that I have added a changelog entry to the changelog (we will add a link to this PR as part of the review): [y]
  • I confirm that I have permission to release this code under the GPL3 license: [y]

@lohedges lohedges added the bug Something isn't working label Mar 25, 2026
@lohedges lohedges merged commit 4330138 into devel Mar 25, 2026
5 checks passed
@lohedges lohedges deleted the fix_duplicate_registers branch March 25, 2026 16:22
lohedges added a commit that referenced this pull request Mar 25, 2026
lohedges added a commit that referenced this pull request Mar 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant