From c3a7c534f94a0e658e0a15734ff030ed017c79af Mon Sep 17 00:00:00 2001
From: Maximilian Schmidt <max.schmidt@fz-juelich.de>
Date: Tue, 5 Jun 2018 13:13:32 +0900
Subject: [PATCH] Switch default in snakemake file to load original data, fix
 typo, add exception for non-define data path

---
 figures/Schmidt2018_dyn/Snakefile | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/figures/Schmidt2018_dyn/Snakefile b/figures/Schmidt2018_dyn/Snakefile
index 531cc6e..dd1b187 100644
--- a/figures/Schmidt2018_dyn/Snakefile
+++ b/figures/Schmidt2018_dyn/Snakefile
@@ -6,7 +6,7 @@ area_list = ['V1', 'V2', 'VP', 'V3', 'V3A', 'MT', 'V4t', 'V4', 'VOT', 'MSTd',
              'STPa', '46', 'AITd', 'TH']
 population_list = ['23E', '23I', '4E',  '4I', '5E', '5I', '6E', '6I']
 
-LOAD_ORIGINAL_DATA = False
+LOAD_ORIGINAL_DATA = True
 
 ORIGINAL_SIM_LABELS = {'all': ['533d73357fbe99f6178029e6054b571b485f40f6',
                                '0adda4a542c3d5d43aebf7c30d876b6c5fd1d63e',
@@ -55,13 +55,17 @@ ORIGINAL_SIM_LABELS = {'all': ['533d73357fbe99f6178029e6054b571b485f40f6',
 
 if LOAD_ORIGINAL_DATA:
     DATA_DIR = original_data_path
-    SIM_LABELS = ORIGINAL_SIM_LABELS_LABELS
+    SIM_LABELS = ORIGINAL_SIM_LABELS
 else:
     from network_simulations import create_label_dict
     from config import data_path
     DATA_DIR = data_path
     SIM_LABELS = create_label_dict()
 
+if DATA_DIR is None:
+    raise TypeError("The path to the data files is None. "
+                    "Please define the data path.")
+
 rule all:
     input:
         'Fig1_model_overview.eps',
-- 
GitLab