Skip to content

Commit 2b617f1

Browse files
committed
remove duplicate heavy atom selection
1 parent 49565ef commit 2b617f1

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎CodeEntropy/levels/axes.py‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,6 @@ def get_UA_axes(self, data_container, index: int, res_position):
314314
resindex = residue.resindex
315315
resindex_next = resindex + 1
316316
resindex_prev = resindex - 1
317-
residue_heavy_atoms = residue.atoms.select_atoms("mass 2 to 999")
318317
edge_atom_set = data_container.select_atoms(
319318
f"resindex {resindex} and "
320319
f"(bonded resindex {resindex_prev} or "
@@ -327,7 +326,7 @@ def get_UA_axes(self, data_container, index: int, res_position):
327326
)
328327
# look for heavy atoms in residue of interest
329328
residue_heavy_atoms = residue.atoms.select_atoms("mass 2 to 999")
330-
residue_heavy_atoms = residue.atoms.select_atoms("mass 2 to 999")
329+
331330
heavy_atom_indices = []
332331
for atom in residue_heavy_atoms:
333332
heavy_atom_indices.append(atom.index)

0 commit comments

Comments
 (0)