# HG changeset patch # User James Bergstra # Date 1306280105 14400 # Node ID 1e4dc99a3b132d0285f115b7fc2e5e471ad15406 # Parent 48efafaaf7fbe5ba4666f6d9997d12d570f1b9ad better error in icml07 when data folder is missing diff -r 48efafaaf7fb -r 1e4dc99a3b13 pylearn/datasets/icml07.py --- 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',