Skip to content

Commit

Permalink
Fix handling of multi-model PDB without MODEL 1
Browse files Browse the repository at this point in the history
Fixes #95
  • Loading branch information
speleo3 committed Nov 11, 2020
1 parent 810750c commit 9dfd87a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions propka/molecular_container.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,10 @@ def __init__(self, parameters, options=None):

def top_up_conformations(self):
"""Makes sure that all atoms are present in all conformations."""
for name in self.conformation_names:
if (name != '1A' and (len(self.conformations[name])
< len(self.conformations['1A']))):
self.conformations[name].top_up(self.conformations['1A'])
first = self.conformations[self.conformation_names[0]]
for name in self.conformation_names[1:]:
if len(self.conformations[name]) < len(first):
self.conformations[name].top_up(first)

def find_covalently_coupled_groups(self):
"""Find covalently coupled groups."""
Expand Down

0 comments on commit 9dfd87a

Please sign in to comment.