Skip to content

Fix PolyConf dihedral_solver() bug and quiet irrelevant warnings#73

Merged
lunamorrow merged 2 commits intomainfrom
polyconf-debug
Feb 18, 2025
Merged

Fix PolyConf dihedral_solver() bug and quiet irrelevant warnings#73
lunamorrow merged 2 commits intomainfrom
polyconf-debug

Conversation

@lunamorrow
Copy link
Contributor

@lunamorrow lunamorrow commented Feb 18, 2025

Changes in this PR:

  • Ignore MDAnalysis PDB writer UserWarnings about missing formalcharge or chainID attributes so users do not have to worry about irrelevant warnings, as these datatypes are not required by PolyConf
  • Fix PolyConf Polymer.dihedral_solver() bug where it does not exit correctly if the first monomer can't be solved

Will resolve issues #69 and #70

The dihedral_solver() function bug is now gone with a bandaid fix, but I would like to overhaul its method in the near future. It currently has a pair of nested while loops which are not friendly towards maintenance and future development of PolyConf.

…or chainID attributes so users do not have to worry about irrelevant warnings, as these datatypes are not required by PolyConf
…and doesn't loop forever if the first dihedral cannot be resolved
@lunamorrow lunamorrow merged commit d48eca0 into main Feb 18, 2025
2 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.

1 participant