a few fixes
[talweg.git] / reports / run.sh
old mode 100644 (file)
new mode 100755 (executable)
index d108199..9d67a84
@@ -1,12 +1,11 @@
 #!/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
 jupyter-nbconvert \
        --ExecutePreprocessor.kernel_name='ir' \
        --ExecutePreprocessor.timeout=1800 \
-       --to html --execute $nbfile \
-       --output=$htmlfile
+       --execute $1.ipynb \
+       --to notebook --output $1.out.ipynb
+#      --to html --output=$1.html