Skip to content

Commit

Permalink
Change 'all' to 'default' and add family_auto_generated flag
Browse files Browse the repository at this point in the history
  • Loading branch information
hwpang committed Jan 12, 2021
1 parent ee7d88a commit 04f618f
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions ipython/kinetics_library_to_training.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"# Set libraries to load reactions from; set to None to load all libraries\n",
"libraries = ['vinylCPD_H']\n",
"\n",
"# Set families to add training reactions to; either 'all' or a list, e.g. ['R_Addition_MultipleBond']\n",
"# Set families to add training reactions to; either 'default' or a list, e.g. ['R_Addition_MultipleBond']\n",
"families = ['Intra_R_Add_Endocyclic']\n",
"\n",
"# Specify whether to plot kinetics comparisons\n",
Expand Down Expand Up @@ -73,8 +73,9 @@
"# If we want accurate kinetics comparison, add existing training reactions and fill tree by averaging\n",
"if compare_kinetics:\n",
" for family in database.kinetics.families.values():\n",
" family.add_rules_from_training(thermo_database=database.thermo)\n",
" family.fill_rules_by_averaging_up(verbose=verbose_comments)"
" if not family.auto_generated:\n",
" family.add_rules_from_training(thermo_database=database.thermo)\n",
" family.fill_rules_by_averaging_up(verbose=verbose_comments)"
]
},
{
Expand All @@ -94,7 +95,7 @@
"source": [
"master_dict, multiple_dict = process_reactions(database,\n",
" libraries,\n",
" families,\n",
" list(database.kinetics.families.keys()),\n",
" compare_kinetics=compare_kinetics,\n",
" show_all=show_all,\n",
" filter_aromatic=filter_aromatic)"
Expand Down Expand Up @@ -213,9 +214,9 @@
"metadata": {
"anaconda-cloud": {},
"kernelspec": {
"display_name": "Python [conda env:rmg_env]",
"display_name": "Python 3",
"language": "python",
"name": "conda-env-rmg_env-py"
"name": "python3"
},
"language_info": {
"codemirror_mode": {
Expand All @@ -227,7 +228,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.7.4"
"version": "3.7.7"
}
},
"nbformat": 4,
Expand Down

0 comments on commit 04f618f

Please sign in to comment.