diff util/SMALL_learn.m @ 232:15fd4c5be71a

merge
author luisf <luis.figueira@eecs.qmul.ac.uk>
date Thu, 19 Apr 2012 15:55:14 +0100
parents 198d4d9cee74
children
line wrap: on
line diff
--- a/util/SMALL_learn.m	Wed Apr 11 16:28:46 2012 +0100
+++ b/util/SMALL_learn.m	Thu Apr 19 15:55:14 2012 +0100
@@ -28,8 +28,16 @@
 start=cputime;
 tStart=tic;
 
-% toolboxes configuration file
-run(fullfile(SMALL_path, 'config/SMALL_learn_config.m'));
+%% toolbox configuration
+% test if there is a locally modified version of the config
+% otherwise reads the "default" config file
+if exist(fullfile(SMALL_path, 'config/SMALL_learn_config_local.m'), 'file') == 2
+    printf('\n\nSMALL_learn: Using local configuration file.\n\n');
+    run(fullfile(SMALL_path, 'config/SMALL_learn_config_local.m'));
+else
+    printf('\n\nSMALL_learn: Using default configuration file.\n\n');
+    run(fullfile(SMALL_path, 'config/SMALL_learn_config.m'));
+end
 
 %%
 %   Dictionary Learning time