Skip to content

Commit

Permalink
Fix bug in legacy metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
Bharath Ramsundar authored and Bharath Ramsundar committed Aug 19, 2020
1 parent 37c6edc commit df7a0ca
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion deepchem/data/datasets.py
Expand Up @@ -2136,7 +2136,8 @@ def generator():
"Selecting from input shard %d/%d for selection output shard %d" %
(shard_num + 1, n_shards, select_shard_num + 1))
if self.legacy_metadata:
shard_len = len(X)
ids = self.get_shard_ids(shard_num)
shard_len = len(ids)
else:
shard_X_shape, _, _, _ = self._get_shard_shape(shard_num)
if len(shard_X_shape) > 0:
Expand Down

0 comments on commit df7a0ca

Please sign in to comment.