aboutsummaryrefslogtreecommitdiff
path: root/playground/calculate
diff options
context:
space:
mode:
Diffstat (limited to 'playground/calculate')
-rw-r--r--playground/calculate/.gitignore2
-rw-r--r--playground/calculate/params.yaml12
-rwxr-xr-xplayground/calculate/run.sh4
3 files changed, 18 insertions, 0 deletions
diff --git a/playground/calculate/.gitignore b/playground/calculate/.gitignore
new file mode 100644
index 0000000..7f98a9c
--- /dev/null
+++ b/playground/calculate/.gitignore
@@ -0,0 +1,2 @@
+/result.yaml
+/output.pdf
diff --git a/playground/calculate/params.yaml b/playground/calculate/params.yaml
new file mode 100644
index 0000000..605acec
--- /dev/null
+++ b/playground/calculate/params.yaml
@@ -0,0 +1,12 @@
+---
+cut_width: 1
+panels:
+ p1:
+ width: 50
+ height: 50
+items:
+ i1:
+ width: 5
+ height: 5
+ can_rotate: true
+...
diff --git a/playground/calculate/run.sh b/playground/calculate/run.sh
new file mode 100755
index 0000000..b62fc9e
--- /dev/null
+++ b/playground/calculate/run.sh
@@ -0,0 +1,4 @@
+#!/bin/bash
+
+export PYTHONPATH=../../src_py
+python -m opcut.main calculate --params params.yaml --result result.yaml --output-pdf output.pdf $*