From 7fcc7d532937033a7cfa486b8cc8eb2cb30709ec Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Sat, 29 Feb 2020 21:48:22 +0100 Subject: [PATCH] Undefined name: subject --> index --- lib/data/BaseDataset.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/data/BaseDataset.py b/lib/data/BaseDataset.py index 5559a68b..2d3e8423 100755 --- a/lib/data/BaseDataset.py +++ b/lib/data/BaseDataset.py @@ -39,7 +39,7 @@ def get_item(self, index): } return res except: - print("Requested subject %s has missing files. Using a random sample instead." % subject) + print("Requested index %s has missing files. Using a random sample instead." % index) return self.get_item(index=random.randint(0, self.__len__() - 1)) def __getitem__(self, index):