-
Notifications
You must be signed in to change notification settings - Fork 9
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
Error handling sanitize bug #85
Conversation
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 good to me.
@@ -349,7 +349,7 @@ def transform_single(self, input_value: Any) -> Any: | |||
elif isinstance(p_element, FilterReinserter): | |||
iter_value = p_element.transform_single(iter_value) | |||
except MolSanitizeException as err: | |||
return InvalidInstance( | |||
iter_value = InvalidInstance( |
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.
So, the filter didn't work because the pipeline just stopped for an instance (a molecule) in the middle of the pipeline when there was a MolSanitizeException
. Good catch!
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.
Jap... But not sure where this came from and why it was there at all...
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
* fix molsanitize exception error catching * linting * isort on other stuff
* mol2morgan_fingerprint: remove deprecated fp function - Remove AllChem.GetMorganFingerprintAsBitVect from the code because it is deprecated. - Add a test to ensure the bit2atom mapping works as intended. * Error handling sanitize bug (#85) * fix molsanitize exception error catching * linting * isort on other stuff * Inchitomol (#86) * fix molsanitize exception error catching * linting * isort on other stuff * add inchitomol element * Add `--check-only` flag to isort (#88) * docu: update readme, add image, add feature calc notebook (#90) * docu: update readme, add image, add feature calc notebook * readme: add feature calculation example * readme: add published Molpipeline paper link * notebooks: add header to feature calculation * add counted fps to test --------- Co-authored-by: frederik-sandfort1 <[email protected]> Co-authored-by: Christian W. Feldmann <[email protected]>
Fixes an error that MolSanitizeErrors are caught but not treated correctly by ErrorHandling