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

mol2rdkit_phys_chem: make failure on any error optional #11

Merged
merged 7 commits into from
May 17, 2024

Conversation

JochenSiegWork
Copy link
Collaborator

Add a parameter fails_on_any_error to MolToRDKitPhysChem to get partial results when the computation of a single physchem descriptor fails.

This feature is necessary for data analysis, where we want to examine data even if one of 200 descriptors failed to be calculated.

    - Add a parameter fails_on_any_error to MolToRDKitPhysChem
      to get partial results when the computation of a single
      physchem descriptor fails.
    - Exceptions are now catched for individual descriptors.
    - Exceptions can optionally be logged.
    - Validity of user-defined descriptor names is checked
      in the constructor.
    - Rename local variable to not shadow another.
    - Suppress pylint warning about to broad exceptions.
Copy link
Collaborator

@c-w-feldmann c-w-feldmann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor changes

molpipeline/mol2any/mol2rdkit_phys_chem.py Outdated Show resolved Hide resolved
molpipeline/mol2any/mol2rdkit_phys_chem.py Show resolved Hide resolved
JochenSiegWork and others added 2 commits May 17, 2024 16:27
    - Add setter for descriptor list to validate user
      provided descriptor names at a central position
      in the code.
@c-w-feldmann c-w-feldmann added the type: enhancement New feature or request label May 17, 2024
    - Ignore None type in setter for descriptor_list to enable
      optional input validation and an optional None.
    - See python/mypy#3004 as reference.
@JochenSiegWork JochenSiegWork merged commit 22da6cb into main May 17, 2024
14 checks passed
@JochenSiegWork JochenSiegWork deleted the extend_error_handling_physchem_rdkit branch May 17, 2024 15:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants