-
Notifications
You must be signed in to change notification settings - Fork 229
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
Revamped training reaction ipython notebook #1373
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1373 +/- ##
==========================================
+ Coverage 42.17% 42.18% +0.01%
==========================================
Files 172 172
Lines 28000 28005 +5
Branches 5500 5505 +5
==========================================
+ Hits 11809 11814 +5
- Misses 15398 15399 +1
+ Partials 793 792 -1
Continue to review full report at Codecov.
|
If you aren't aware you only merged in the first commit from #1370 |
I changed the default value for |
Ok, I honestly don't really remember, but I'll find out if I have to run the rules to training reactions script again. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So far everything looks good, though I am still looking over this middle commit--I'll have more for you soon.
for rxn in reactions: | ||
for spec in (rxn.reactants + rxn.products): | ||
for ex_spec_label in speciesDict: | ||
ex_spec = speciesDict[ex_spec_label] | ||
for ex_spec in species_dict.itervalues(): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch!
@@ -0,0 +1,425 @@ | |||
#!/usr/bin/env python |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since this file does not have a main()
function that would get executed if you were to run this as a script, should we move this file to rmgpy/tools/
where code related to this is stored?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I considered that, but also wanted to keep it close to the ipython notebook. I can move it if you think it would be better.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am fine with it here then
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The ipynb works just fine for me, and the code looks good. This is an awesome ipython notebook!
Update the branch and I'l merge this in.
@@ -0,0 +1,425 @@ | |||
#!/usr/bin/env python |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am fine with it here then
Add new reactions to currently loaded depository for immediate use Remove excess line breaks when saving entries Update variable names and general formatting
Updated version of the convertKineticsLibraryToTrainingReactions notebook in RMG-database. Transferring it to RMG-Py to make it easier to keep up to date with RMG-Py. Most of the code in the notebook has been moved to a separate file to make the notebook more compact and user-friendly.
@amarkpayne, this has been rebased and is ready to merge. |
This PR moves the
convertKineticsLibraryToTrainingReactions.ipynb
notebook from RMG-database to RMG-Py. This was done to make it easier to keep the script up to date with RMG-Py.The notebook was streamlined substantially by converting most of the code to functions and moving them into a separate file. New steps were also added to handle the common issue of having multiple matches and offer summary to review the reactions to be added.
Some improvements were also added to
KineticsFamily.saveTrainingReactions
to make it easier to use.This PR includes changes from ReactionMechanismGenerator/RMG-database#125 and ReactionMechanismGenerator/RMG-database#241.