Skip to content

Commit fa60f69

Browse files
committed
fix(axes): pass AtomGroup for single-residue molecules in UA covariance
1 parent 3066ccd commit fa60f69

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

‎CodeEntropy/levels/nodes/covariance.py‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ def _process_united_atom(
237237

238238
else:
239239
res_position = None
240-
residue_group = res
240+
residue_group = res.atoms
241241
bead_key = (mol_id, "united_atom", local_res_i)
242242
bead_idx_list = beads.get(bead_key, [])
243243
if not bead_idx_list:
@@ -483,7 +483,6 @@ def _build_ua_vectors(
483483
ua_topology = None
484484
if axes == "topology":
485485
ua_topology = axes_topology.ua.get((mol_id, local_res_i, ua_i))
486-
print(f"The ua topology is: {ua_topology}")
487486
if ua_topology is not None:
488487
trans_axes, rot_axes, center, moi = (
489488
axes_manager.get_UA_axes_from_topology(
@@ -493,7 +492,6 @@ def _build_ua_vectors(
493492
box=box,
494493
)
495494
)
496-
print("We used the topology axes!")
497495
else:
498496
# custom local axes if no topology
499497
make_whole(residue_group)
@@ -645,7 +643,6 @@ def _get_residue_axes(
645643
"""
646644
if axes == "topology" or axes == "local":
647645
res = mol.residues[local_res_i]
648-
print(f"The axes topology is: {axes_topology}")
649646
residue_topology = None
650647
if axes == "topology" and axes_topology is not None:
651648
# can use the cached axes topology

0 commit comments

Comments
 (0)