aboutsummaryrefslogtreecommitdiff
path: root/playground
diff options
context:
space:
mode:
Diffstat (limited to 'playground')
-rwxr-xr-xplayground/calculate.sh6
-rwxr-xr-xplayground/generate-output.sh9
-rwxr-xr-xplayground/generate_output.sh9
3 files changed, 12 insertions, 12 deletions
diff --git a/playground/calculate.sh b/playground/calculate.sh
index bff0e14..9368a6d 100755
--- a/playground/calculate.sh
+++ b/playground/calculate.sh
@@ -3,6 +3,6 @@
. $(dirname -- "$0")/env.sh
exec $PYTHON -m opcut calculate \
- --params $RUN_PATH/params.json \
- --result $RUN_PATH/result.json \
- "$@"
+ --method forward_greedy \
+ --output $RUN_PATH/result.json \
+ $RUN_PATH/params.json
diff --git a/playground/generate-output.sh b/playground/generate-output.sh
new file mode 100755
index 0000000..4e16a64
--- /dev/null
+++ b/playground/generate-output.sh
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+. $(dirname -- "$0")/env.sh
+
+exec $PYTHON -m opcut generate-output \
+ --output-type pdf \
+ < $RUN_PATH/result.json \
+ > $RUN_PATH/output.pdf \
+
diff --git a/playground/generate_output.sh b/playground/generate_output.sh
deleted file mode 100755
index 0139233..0000000
--- a/playground/generate_output.sh
+++ /dev/null
@@ -1,9 +0,0 @@
-#!/bin/sh
-
-. $(dirname -- "$0")/env.sh
-
-exec $PYTHON -m opcut generate_output \
- --output-type pdf \
- --result $RUN_PATH/result.json \
- --output $RUN_PATH/output.pdf \
- "$@"