Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions tmol/kinematics/scan_ordering.py
Original file line number Diff line number Diff line change
Expand Up @@ -799,7 +799,7 @@ def gen_depth_given_first_descendant():
)
else:

if is_conn_atom[k_atom_ind]:
if j != n_conn + 1 and is_conn_atom[k_atom_ind]:
# In this case, "the" connection (there can possibly be more than one!)
# will be the first child and the other descendants will be second children.
# We save the gen depth, but when calculating the gen depth of the
Expand All @@ -808,8 +808,6 @@ def gen_depth_given_first_descendant():
# intra-residue bits and the gen-depth of the nodes downstream of it.
# TO DO: This case needs to be properly handled when calculating the
# maximum number of generations to run gen-seg-scan.
# if target:
# print("conn atom", bt.atom_name(k_atom_ind))
gen_depth[k_atom_ind] = max([gen_depth[l] for l in k_kids]) + 1
else:
_handle_case_of_no_exit_scan_path_segment(
Expand Down