Skip to content

Commit af80571

Browse files
committed
fixed translation centre for single heavy atom case
1 parent 94cf45c commit af80571

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎CodeEntropy/levels/axes.py‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,8 @@ def get_UA_axes(self, data_container, index: int, res_position):
294294
# only one heavy atom or hydrogen molecule
295295
make_whole(data_container.atoms)
296296
residue = data_container
297+
# trans_center is center of mass
298+
trans_center = np.array(data_container.center_of_mass())
297299
trans_axes = data_container.atoms.principal_axes()
298300

299301
residue_heavy_atoms = residue.atoms.select_atoms("mass 2 to 999")

0 commit comments

Comments
 (0)