Skip to content

Commit

Permalink
pretty print fails for the RDKitAdaptor Featurizers. (#413)
Browse files Browse the repository at this point in the history
Fixes #375
  • Loading branch information
kjappelbaum committed Dec 17, 2022
1 parent 8d57d52 commit 2a9070f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/mofdscribe/featurizers/bu/rdkitadaptor.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,13 @@ def __init__(
self._local_env_strategy = local_env_strategy
self._force_sanitize = force_sanitize

def __repr__(self) -> str:
return "RDKitAdaptor(featurizer={}, feature_labels={})".format(
self._featurizer, self._feature_labels)

def _repr_mimebundle_(self, include=None, exclude=None):
return self.__repr__()

def feature_labels(self) -> List[str]:
return self._feature_labels

Expand Down

0 comments on commit 2a9070f

Please sign in to comment.