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
Update MinimalLib for Function Exposure: runReactants #7210
Conversation
- Added Run Reactants and added JS Tests
Hello! @greglandrum @ptosco A silly question. I plan to port ScaffoldNetwork to MinimalLib as well. Would I need to open a new PR for that or shall I merge that into this PR? |
@syedzayyan Please submit a separate PR. |
Thank you for your prompt response! @ptosco I'll go ahead and submit a separate PR for the ScaffoldNetwork feature, as suggested with the CMake switch for greater flexibility. On another note, if you find some time, I'd love to get your input on this PR :). |
Code/MinimalLib/minilib.cpp
Outdated
|
||
for (const auto &reactant : reactants.mols()) { | ||
if (!reactant) { | ||
std::cerr << "Error: reactant is null\n"; |
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.
We don't do error reporting straight to std::cerr
.
I think you need to thrown an exception here, but @ptosco should suggest what he thinks is the best approach for error handling in minilib
@syedzayyan I have submitted a PR against your branch with some suggested changes.
|
Thank you so much for the suggested changes!
Hello @ptosco ! Thanks very much for the suggestions. I was wondering why return a vector of |
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 tested this locally and it looks good to me.
I just (hopefully) fixed the merge conflicts. Will merge later this afternoon after the CI builds go through |
This is an exposure of runReactants features to minimal lib:
It passed the simple test I coded. First-time contributor, please go easy :).