aboutsummaryrefslogtreecommitdiff
path: root/playground
diff options
context:
space:
mode:
authorbozo.kopic <bozo@kopic.xyz>2022-01-03 00:58:17 +0100
committerbozo.kopic <bozo@kopic.xyz>2022-01-03 00:58:17 +0100
commitae33b2c75ec0e03fd1d80241a4c4b29acadb517c (patch)
treefa86a159bafb6ea5c1605cd66a67f8be5a24ba3e /playground
parent1a73bd946b8636dbcbb2970c8f8e919b888074ab (diff)
calculate native implementation
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 \
- "$@"