From d09b6bb1f2096103675e8d432e45d795a29ce9dc Mon Sep 17 00:00:00 2001
From: Luis Salamanca <luis.salamanca@sdsc.ethz.ch>
Date: Mon, 28 Jan 2019 09:18:24 +0000
Subject: [PATCH] Script for isolation

---
 src/sh/execute_per_year_isolation.sh | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
 create mode 100755 src/sh/execute_per_year_isolation.sh

diff --git a/src/sh/execute_per_year_isolation.sh b/src/sh/execute_per_year_isolation.sh
new file mode 100755
index 00000000..cd3f676b
--- /dev/null
+++ b/src/sh/execute_per_year_isolation.sh
@@ -0,0 +1,16 @@
+#!/bin/bash
+# The input variables are:
+# 1 - name of python function to run
+# 2 - folder of the database
+# 3 - name of input file
+# 4 - name of output file
+
+year_start=$5
+year_end=$6
+
+for year in $(seq $year_start $year_end)
+do
+    echo $year
+    $CONDA_DIR/envs/renku/bin/renku run --isolation python $1 ${2}/$year/${3}.tar.gz ${2}/$year/${4}.tar.gz
+done
+
-- 
GitLab