Skip to content
This repository has been archived by the owner on Mar 21, 2021. It is now read-only.

Commit

Permalink
Merge pull request #8 from Electrostatics/nathan/edge
Browse files Browse the repository at this point in the history
Improve parsing of PDB edge cases
  • Loading branch information
sobolevnrm authored Mar 1, 2021
2 parents d869ce6 + 265a744 commit 09c2c3a
Show file tree
Hide file tree
Showing 6 changed files with 13,982 additions and 4 deletions.
5 changes: 5 additions & 0 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@
Change log
==========

1.1.0
=====

* Added additional test cases covering OBSLTE (3WXV), SPRSDE (6KS0) and fixed associated bugs.

1.0.0
=====

Expand Down
6 changes: 3 additions & 3 deletions old_pdb/annotation.py
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ def __str__(self):
else:
string = "OBSLTE "
string += (
f" {date_format(self.replace_date):9} {self.id_code} "
f" {date_format(self.replace_date):9} {self.id_code} "
)
for code in chunk:
if code is not None:
Expand Down Expand Up @@ -972,7 +972,7 @@ def parse_line(self, line):

def __str__(self):
strings = []
for ichunk, chunk in grouper(self.id_codes, 14):
for ichunk, chunk in enumerate(grouper(self.id_codes, 14)):
string = ""
continuation = ichunk + 1
if continuation > 1:
Expand Down Expand Up @@ -1054,7 +1054,7 @@ def parse_line(self, line):

def __str__(self):
strings = []
for ichunk, chunk in grouper(self.super_id_codes, 8):
for ichunk, chunk in enumerate(grouper(self.super_id_codes, 8)):
continuation = ichunk + 1
if continuation > 1:
string = f"SPRSDE {continuation:>2} "
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

setuptools.setup(
name="old_pdb",
version="1.0.0",
version="1.1.0",
description=(
"This code reads and writes the old Protein Data Bank format."
),
Expand Down
Loading

0 comments on commit 09c2c3a

Please sign in to comment.