'update'
[talweg.git] / reports / run.sh
index d108199..4c6a00e 100755 (executable)
@@ -1,12 +1,12 @@
 #!/bin/sh
-# Usage: ./run.sh P H
+# Usage: ./run.sh file[no_suffix] P H
 
-nbfile=report_P$1_H$2.ipynb
-./ipynb_generator.py report.gj $nbfile P=$1 H=$2
+./ipynb_generator.py $1.gj - P=$2 H=$3
 
-htmlfile=report_P$1_H$2.html
+# Timeout for 1 cell : 24*3600s = 24h
 jupyter-nbconvert \
        --ExecutePreprocessor.kernel_name='ir' \
-       --ExecutePreprocessor.timeout=1800 \
-       --to html --execute $nbfile \
-       --output=$htmlfile
+       --ExecutePreprocessor.timeout=86400 \
+       --execute $1.ipynb \
+       --to notebook --output $1.out.ipynb
+#      --to html --output=$1.html