Skip to content

Commit

Permalink
Merge pull request deepchem#3632 from MarcS18/master
Browse files Browse the repository at this point in the history
Atomic Contributions bug fix
  • Loading branch information
rbharath authored Nov 1, 2023
2 parents 8910cda + 91235dd commit 56adfb8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion deepchem/data/data_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -908,7 +908,11 @@ def _featurize_shard(self,
features = [
elt for (is_valid, elt) in zip(valid_inds, features) if is_valid
]
return np.array(features), valid_inds
try:
return np.array(features), valid_inds
except ValueError as e:
logger.warning("Exception message: {}".format(e))
return np.asarray(features, dtype=object), valid_inds


class FASTALoader(DataLoader):
Expand Down

0 comments on commit 56adfb8

Please sign in to comment.