changeset 1478:1e4dc99a3b13

better error in icml07 when data folder is missing
author James Bergstra <bergstrj@iro.umontreal.ca>
date Tue, 24 May 2011 19:35:05 -0400
parents 48efafaaf7fb
children 1b69d435f09f
files pylearn/datasets/icml07.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/pylearn/datasets/icml07.py	Sat May 21 01:03:10 2011 -0400
+++ b/pylearn/datasets/icml07.py	Tue May 24 19:35:05 2011 -0400
@@ -96,6 +96,8 @@
 def icml07_loaders(new_version=True, rootdir=None):
     if rootdir is None:
         rootdir = get_filepath_in_roots('icml07data_twiki')
+    if rootdir is None:
+        raise IOError('dataset not found (no icml07data_twiki folder in dbpath')
     rval = dict(
         mnist_basic=DatasetLoader(
             http_source='http://www.iro.umontreal.ca/~lisa/icml2007data/mnist.zip',