We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a50ce8f commit b629f9cCopy full SHA for b629f9c
chebai_graph/preprocessing/datasets/chebi.py
@@ -130,7 +130,13 @@ def enc_if_not_none(encode, value):
130
131
# augment molecule graph if possible (this would also happen for the properties if needed, but this avoids redundancy)
132
if isinstance(self.reader, _AugmentorReader):
133
- returned_results = [self.reader._create_augmented_graph(mol) for mol in features]
+ returned_results = []
134
+ for mol in features:
135
+ try:
136
+ r = self.reader._create_augmented_graph(mol)
137
+ except Exception as e:
138
+ r = None
139
+ returned_results.append(r)
140
mols = [augmented_mol[1] for augmented_mol in returned_results if augmented_mol is not None]
141
else:
142
mols = features
0 commit comments