Skip to content

Commit

Permalink
Same result way faster without selection
Browse files Browse the repository at this point in the history
  • Loading branch information
olegsobolev committed Jul 8, 2024
1 parent 370c297 commit a43aa7b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions mmtbx/ncs/ncs_restraints_group_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -301,8 +301,7 @@ def filter_ncs_restraints_group_list(self, whole_h, ncs_obj):
This leads to undesired artefacts in refinement.
"""
def whole_chain_in_ncs(whole_h, master_iselection):
m_c = whole_h.select(master_iselection)
m_c_id = m_c.only_model().chains()[0].id
m_c_id = whole_h.atoms()[master_iselection[0]].parent().parent().parent().id
for chain in ncs_obj.truncated_hierarchy.only_model().chains():
if chain.id == m_c_id:
if chain.atoms_size() <= master_iselection.size():
Expand Down

0 comments on commit a43aa7b

Please sign in to comment.