Manage output files in less-janky fashion.

This commit is contained in:
sam
2024-11-17 17:14:44 -08:00
parent 7211ed1723
commit d2ac5749dc
2 changed files with 108 additions and 33 deletions
+2 -8
View File
@@ -1,11 +1,5 @@
run *name:
python3 ./model.py
@if [[ ! -z "{{ name }}" ]]; then \
OUT_DIR="output/{{ name }}"; \
rm -rf "${OUT_DIR}"; \
mkdir -p "${OUT_DIR}"; \
mv bitcoin_*.png bitcoin_*.txt "${OUT_DIR}"; \
fi
python3 ./model.py -n "{{ name }}"
fmt:
black ./*.py
@@ -14,4 +8,4 @@ lint:
ruff check ./model.py
clean:
rm -f bitcoin_*.png bitcoin_*.txt
rm -rf output