Manage output files in less-janky fashion.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user