Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion polyconf/polyconf/PDB.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env python

import warnings
import MDAnalysis as mda

class PDB:
Expand Down Expand Up @@ -53,6 +53,10 @@ def save(self, dummies="X*", fname="polymer", selectionString = None, gmx = Fals
defaults to False
:type gmx: bool, optional
"""
# ignore MDAnalysis "UserWarning: Found no information for attr: 'formalcharges' Using default value of '0'"
warnings.simplefilter('ignore', category=UserWarning, lineno=1154)
# ignore MDAnalysis "UserWarning: Found missing chainIDs. Corresponding atoms will use value of 'X'"
warnings.simplefilter('ignore', category=UserWarning, lineno=1201)
if selectionString:
if gmx:
self.select_atoms(f"{selectionString} and not name {dummies}").atoms._write(f"{fname}.gro")
Expand Down
1 change: 1 addition & 0 deletions polyconf/polyconf/Polymer.py
Original file line number Diff line number Diff line change
Expand Up @@ -446,6 +446,7 @@ def dihedral_solver(self,pairlist,dummies='X*',cutoff=0.7,backwards_only=True):
if i==0: # yes, and this is the first monomer
failed=True
done=True
i=-1 # force exit from while loops upon failure
else: # yes, and this is not the first monomer
#print(i,tries[i])
retry=True
Expand Down