Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed a potential infinite loop in the script for fitting Benson groups. #658

Merged
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
2 changes: 1 addition & 1 deletion scripts/fitThermoGroupsFromThermoLibrary.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,7 @@
" group = make_group(atom, n_degree_neighbor=n_degree_neighbor)\n",
" group_str = make_group_name(atom, n_degree_neighbor=n_degree_neighbor)\n",
"\n",
" while any([(group.make_sample_molecule()).is_subgraph_isomorphic(child.item) for child in node.children]):\n",
" while any([(group.make_sample_molecule()).is_subgraph_isomorphic(child.item, generate_initial_map = True) for child in node.children]):\n",
" #Child-node can't be the child of other children\n",
" #to avoid ambiguous group selection\n",
" n_degree_neighbor+=1\n",
Expand Down
Loading