Skip to content

Commit 3b148c5

Browse files
committed
Fix Temp factor padding (fixes #32)
1 parent a906fea commit 3b148c5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

atomium/pdb.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -614,8 +614,8 @@ def atom_to_atom_line(a, lines):
614614
"{:.3f}".format(a.location[0]) if a.location[0] is not None else "",
615615
"{:.3f}".format(a.location[1]) if a.location[1] is not None else "",
616616
"{:.3f}".format(a.location[2]) if a.location[2] is not None else "",
617-
a.bvalue if a.bvalue is not None else "", a.element or "",
618-
str(int(a.charge))[::-1] if a.charge else "",
617+
"{:.2f}".format(a.bvalue).strip().rjust(6) if a.bvalue is not None else "",
618+
a.element or "", str(int(a.charge))[::-1] if a.charge else "",
619619
)
620620
lines.append(line)
621621
if a.anisotropy != [0, 0, 0, 0, 0, 0]:

0 commit comments

Comments
 (0)