Unverified Commit e2e7b319 authored by Hrishikesh Dhondge's avatar Hrishikesh Dhondge Committed by GitHub
Browse files

Improved handling of CRYST1 records #3446 (#3469)



* Improved handling of CRYST1 records #3446

* Apply suggestions from code review
Co-authored-by: default avatarJason Swails <jason@entos.ai>
Co-authored-by: default avatarJason Swails <jason@entos.ai>
parent 334359e6
......@@ -196,7 +196,8 @@ class PdbStructure(object):
alpha = float(pdb_line[33:40])*math.pi/180.0
beta = float(pdb_line[40:47])*math.pi/180.0
gamma = float(pdb_line[47:54])*math.pi/180.0
self._periodic_box_vectors = computePeriodicBoxVectors(a_length, b_length, c_length, alpha, beta, gamma)
if 0 not in (a_length, b_length, c_length):
self._periodic_box_vectors = computePeriodicBoxVectors(a_length, b_length, c_length, alpha, beta, gamma)
elif command == "SEQRES":
chain_id = pdb_line[11]
if len(self.sequences) == 0 or chain_id != self.sequences[-1].chain_id:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment