forked from Oesterlund/GraFT
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
24 lines (18 loc) · 849 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
install:
pip install .
test:
pip install . && pytest -s -v
run-webapp:
pip install . && graft-webapp
run-cli-example:
time python src/graft/cli.py timeseries src/graft/data/timeseries.tif /tmp/graft_output
rm -rf /tmp/graft_output
create-cpu-profiles: install
python -m cProfile -o timeseries.cprof src/graft/cli.py timeseries --disable_parallelization src/graft/data/timeseries.tif /tmp/graft_output && rm -rf /tmp/graft_output
python -m cProfile -o timeseries-parallel.cprof src/graft/cli.py timeseries src/graft/data/timeseries.tif /tmp/graft_output && rm -rf /tmp/graft_output
run-line-profiler:
pip install . && kernprof -l -v src/graft/cli.py timeseries src/graft/data/timeseries.tif /tmp/graft_output
rm cli.py.lprof && rm -rf /tmp/graft_output
clean:
rm -rf build/ dist/ *.egg-info
rm -rf src/*.egg-info/ tests/__pycache__/