Skip to content

Commit 3f12ed8

Browse files
committed
Make deprecated num_samples keyworld only
1 parent 36d785c commit 3f12ed8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cebra/data/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ def __iter__(self) -> Iterator[Batch]:
273273
yield self.dataset.load_batch(index)
274274

275275
@abc.abstractmethod
276-
def get_indices(self, num_samples: int = None):
276+
def get_indices(self, *, num_samples: int = None):
277277
"""Sample and return the specified number of indices.
278278
279279
The elements of the returned `BatchIndex` will be used to index the

0 commit comments

Comments
 (0)