Skip to content

Commit

Permalink
Pass file object and not lines read to reading functions for PDBx for…
Browse files Browse the repository at this point in the history
…mat files. (#221)
  • Loading branch information
dww100 authored Jul 6, 2021
1 parent 1d33065 commit 4495086
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pdbfixer/pdbfixer.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ def __init__(self, filename=None, pdbfile=None, pdbxfile=None, url=None, pdbid=N
self.source = filename
file = open(filename, 'r')
if _guessFileFormat(file, filename) == 'pdbx':
self._initializeFromPDBx(file.read())
self._initializeFromPDBx(file)
else:
self._initializeFromPDB(file)
file.close()
Expand Down

0 comments on commit 4495086

Please sign in to comment.