Skip to content
This repository has been archived by the owner on Jun 26, 2021. It is now read-only.

Commit

Permalink
fix behavior of BlankDataset
Browse files Browse the repository at this point in the history
  • Loading branch information
ORippler committed Feb 7, 2019
1 parent beec333 commit 353648e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions delira/data_loading/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ def get_subset(self, indices):
continue
kwargs[key] = val

kwargs["old_getitem"] = self.__getitem__
kwargs["old_getitem"] = self.__class__.__getitem__
subset_data = [self.get_sample_from_index(idx) for idx in indices]

return BlankDataset(subset_data, **kwargs)
Expand Down Expand Up @@ -220,7 +220,7 @@ def __getitem__(self, index):
dictionary containing a single sample
"""
return self._old_getitem(index)
return self._old_getitem(self, index)

def __len__(self):
"""
Expand Down

0 comments on commit 353648e

Please sign in to comment.