-
Notifications
You must be signed in to change notification settings - Fork 32
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
make fragment compatible for rms #216
make fragment compatible for rms #216
Conversation
I rebased and cleaned up unnecessary changes as @JacksonBurns and Anna need this to wrap up the fragment work. |
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.
LGTM - my only thought is that you might want to delete the commented lines, rather than carry the commented out version forward.
@JacksonBurns Thanks for catching that, I didn't notice that Lily commented those lines out. Those are changes for her personal use and should not be included in this PR. I edited that commit. |
@hwpang sure thing! I will re-run the tests since (from visual inspection) the errors were possibly spurious. If they fail again for the same reason, could you take a look? Tests which seem unrelated to this PR are failing. |
@JacksonBurns Thanks for rerunning the tests! The CI still failed after rerunning, due to the following error:
I suspect that the |
I realize that the reason the CI test failed had nothing to do with |
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.
LGTM! Thanks for figuring out the issue with the CI
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.
Thanks!
There are a few try-catches here that aren't for specific errors...that could be annoying for users...suppose someone messes up a Molecule adjlist...they won't get the actual error associated with constructing a Molecule, they will get the error associated with constructing a Fragment.
Also is it possible to add the bugfixes for #219 to this PR?
Other than that just a couple comments.
@hwpang can you take care of the comments from @mjohnson541's review? I'm not sure what the type cast (if it is a type cast) exactly accomplishes |
@JacksonBurns Yes, I will work on this! Unfortunately I have commitments today and tomorrow, so the earliest I can work on this is Friday. In the meanwhile, you and Anna can use this branch for now for your fragment related work. |
@mjohnson541 I addressed your comments in the new push! I have an attempt to fix the issue (#219) in a previously opened PR (#230). Can you also review that PR? I think It currently failed one of the new unit tests I added. I will try getting around to fix it soon. I prefer to have separate PRs and each solves a small bug, rather than a larger PR that solves all the bugs. |
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.
Looks mostly good, one last thing.
@@ -42,11 +42,19 @@ function drawspc(spc::Species,path::String=".") | |||
end | |||
end | |||
if spc.adjlist != "" | |||
mol = molecule.Molecule().from_adjacency_list(spc.adjlist) |
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.
Can we do this one with Species the same way you do later?
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.
Yep! Done.
8e598be
to
b8158f6
Compare
It turns out you can't check if a Python object is of a Python class instance in Julia, which causes some part of tests to fail because Edit: I figured out how to call isinstance with PyCall to do the type check in the new push. |
Still trying to figure out why the changes I made for fragment would fail things for surface species... |
It turns out that the problem was with |
The newest changes have passed the tests that we are able to pass currently. The two tests failed are related to #235. I will clean up the commits a bit. |
… realistic atom dict for Mw calculation
@mjohnson541 All comments are addressed, please re-review! |
49f8d1a
into
ReactionMechanismGenerator:main
Make rms being able to read & draw fragments