Skip to content

Commit

Permalink
d
Browse files Browse the repository at this point in the history
  • Loading branch information
eddyxu committed Feb 2, 2024
1 parent d2d42ac commit aa46cda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/python/lance/sampler.py
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ def iter_fragments(
self, dataset: lance.LanceDataset, **kwargs
) -> Generator[lance.LanceFragment, None, None]:
fragments = dataset.get_fragments()
if self.randomize:
if self._randomize:
random.seed(self._seed)
fragments = random.shuffle(fragments)
for idx in range(self._rank, len(fragments), self._world_size):
Expand Down

0 comments on commit aa46cda

Please sign in to comment.