Skip to content
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

WIP: detect and handle errors from OpenBabel via propOB #96

Closed
wants to merge 7 commits into from

Conversation

Aariq
Copy link
Collaborator

@Aariq Aariq commented Jan 11, 2024

Attempt at solving #56 by using callr to run propOB in an isolated R session where I can capture stderr. The downside is that it appears to be quite a bit slower, but it does appear to work. Still much to do:

  • Integrate into get_fx_groups()
    • Pass ob_err_pass from get_fx_groups() (actually, maybe this argument shouldn't be part of safe_propOB() but rather higher up and have the effect of choosing between ChemmineR::propOB() and safe_propOB(). That way can use faster option when there aren't errors.)
    • Make sure results have NAs in the correct places
    • Add (list) column with Open Babel messages?

@Aariq Aariq linked an issue Feb 2, 2024 that may be closed by this pull request
@Aariq Aariq mentioned this pull request Feb 14, 2024
@Aariq
Copy link
Collaborator Author

Aariq commented Mar 18, 2024

Decided it is likely better to check for the symptoms of invalid SDFs rather than to try to capture the errors. See discussion in #85. Will leave this open until we are sure that this alternative approach is better, then will close this PR.

@Aariq
Copy link
Collaborator Author

Aariq commented May 9, 2024

Closing this as it was superseded (mostly) by #104

@Aariq Aariq closed this May 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Capture OpenBabel errors and add to output of calc_vol()
1 participant