Skip to content
Merged
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
7 changes: 5 additions & 2 deletions src/automol/graph/base/_func_group.py
Original file line number Diff line number Diff line change
Expand Up @@ -701,10 +701,13 @@ def halide_groups(gra):
hal_neighs = neighbors_of_type(gra, hal_idx, symb="C")
if not hal_neighs:
hal_neighs = neighbors_of_type(gra, hal_idx, symb="S")
hal_neighs = neighbors_of_type(gra, hal_idx, symb="B")
hal_neighs += neighbors_of_type(gra, hal_idx, symb="B")
hal_neighs += neighbors_of_type(gra, hal_idx, symb="O")
hal_neighs += neighbors_of_type(gra, hal_idx, symb="N")
hal_grps += ((hal_neighs[0], hal_idx),)
if hal_neighs:
hal_grps += ((hal_neighs[0], hal_idx),)
else:
hal_grps += ((None, hal_idx),)

return hal_grps

Expand Down
Loading