diff dataset.py @ 337:5e38ed2b3a75

debugging when fieldnames = None, now -> fieldnames = fieldNames()
author Thierry Bertin-Mahieux <bertinmt@iro.umontreal.ca>
date Mon, 16 Jun 2008 17:17:01 -0400
parents 89d88807e958
children 7d4792fc28ae aa8aff6abbf7
line wrap: on
line diff
--- a/dataset.py	Mon Jun 16 16:59:35 2008 -0400
+++ b/dataset.py	Mon Jun 16 17:17:01 2008 -0400
@@ -388,6 +388,8 @@
         assert offset >= 0
         assert offset < len(self)
         assert offset + minibatch_size -1 < len(self)
+        if fieldnames == None :
+            fieldnames = self.fieldNames()
         return self.minibatches_nowrap(fieldnames,minibatch_size,n_batches,offset)
 
     def minibatches_nowrap(self,fieldnames,minibatch_size,n_batches,offset):