Skip to content

Commit

Permalink
iotbx: make sure object is str type
Browse files Browse the repository at this point in the history
  • Loading branch information
bkpoon committed Nov 18, 2023
1 parent 887b345 commit d715ea5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion iotbx/pdb/fetch.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ def load_pdb_structure(id, format="pdb", allow_unknowns=False,
"""
data = fetch(id=id, format=format, log=null_out(), local_cache=local_cache)
import iotbx.pdb
pdb_in = iotbx.pdb.input(source_info=None, lines=data.read().decode())
pdb_in = iotbx.pdb.input(source_info=None, lines=libtbx.utils.to_str(data.read()))
hierarchy = pdb_in.construct_hierarchy()
hierarchy.atoms().reset_i_seq()
# XXX enable_scattering_type_unknown can be modified here because the PDB
Expand Down

0 comments on commit d715ea5

Please sign in to comment.