Skip to content

Commit

Permalink
fixes to converter to bio
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesmkrieger committed Jan 17, 2024
1 parent 6f2de20 commit 49131cb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion prody/atomic/atomic.py
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,9 @@ def toBioPythonStructure(self, header=None, **kwargs):

origACSI = self.getACSIndex()

csets = kwargs.get('csets', range(self.numCoordsets()))
csets = kwargs.get('csets', None)
if csets is None:
csets = range(self.numCoordsets())

structure_builder = StructureBuilder()
structure_builder.init_structure(self.getTitle())
Expand Down Expand Up @@ -342,6 +344,8 @@ def toBioPythonStructure(self, header=None, **kwargs):

resseq = atom.getResnum()
icode = atom.getIcode()
if len(icode) == 0:
icode = ' '
residue_id = (hetero_flag, resseq, icode)

if current_chain_id != chainid:
Expand Down

0 comments on commit 49131cb

Please sign in to comment.