-
Notifications
You must be signed in to change notification settings - Fork 227
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
Debug library to training script #2057
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2057 +/- ##
==========================================
+ Coverage 47.54% 47.61% +0.06%
==========================================
Files 88 88
Lines 23300 23302 +2
Branches 6061 6061
==========================================
+ Hits 11079 11095 +16
+ Misses 11062 11052 -10
+ Partials 1159 1155 -4
Continue to review full report at Codecov.
|
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.
This looks good to me.
Can you rebase? |
8f7a16a
to
27472b8
Compare
Thanks for the review! It's rebased! |
27472b8
to
c4fee1f
Compare
I changed '1/s' to 's^-1' for the A unit conversion part to have consistent format with those used in |
c4fee1f
to
ee7d88a
Compare
I added a line to import ScalarQuantity from rmgpy.quantity for A unit conversion. I had a separate file for my own use and some changes were lost when I copied and pasted. Sorry for the multiple follow up changes, this is the last one! |
I made some minor changes in the jupyter notebook while preparing for RMG workshop.
|
Motivation or Problem
I encountered two errors while converting a library containing this Diels-Alder reaction to training reaction.
(1) Two reactants were wrongly added with the same atom label by
add_atom_labels_for_reaction
because the two reactants are isomorphic.(2) The A unit caused problem in
add_rules_from_training
because only cm mol s units were expected.Description of Changes
(1) In
add_atom_labels_for_reaction
, I modified such that the labeled_molecule is removed after it is matched to one of the reactant. This way, two reactants won't be matched to the same atom label.(2) In
kinetics_library_to_training_tools
I added an unit conversion for A from arbitrary unit to cm mol s unit.Testing
After the change, the
kinetics_library_to_training.ipynb
can process the library without error.