changeset 258:c2fae7b96769

maxsize -> self.maxsize
author Arnaud Bergeron <abergeron@gmail.com>
date Tue, 16 Mar 2010 19:05:59 -0400
parents 966272e7f14b
children 3919c71e3091
files datasets/gzpklfile.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/datasets/gzpklfile.py	Tue Mar 16 18:51:27 2010 -0400
+++ b/datasets/gzpklfile.py	Tue Mar 16 19:05:59 2010 -0400
@@ -36,5 +36,5 @@
     def _return_it(self, batchsz, bufsz, id):
         if not hasattr(self, 'datas'):
             self._load()
-        return izip(DataIterator([ArrayFile(self.datas[id][0][:maxsize])], batchsz, bufsz),
-                    DataIterator([ArrayFile(self.datas[id][1][:maxsize])], batchsz, bufsz))
+        return izip(DataIterator([ArrayFile(self.datas[id][0][:self.maxsize])], batchsz, bufsz),
+                    DataIterator([ArrayFile(self.datas[id][1][:self.maxsize])], batchsz, bufsz))