-
Notifications
You must be signed in to change notification settings - Fork 2
/
makefile
52 lines (42 loc) · 2.3 KB
/
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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
format-and-lint:
pre-commit run --all-files
test:
pytest -n auto -v # parallelise, verbose output
example:
jupytext --quiet --to ipynb --update docs/examples*/*.py
jupytext --execute docs/examples*/*.ipynb
benchmarks-plot-results:
jupytext --quiet --to ipynb --update docs/benchmarks/**/*.md
jupytext --execute docs/benchmarks/**/*.ipynb
benchmarks-run:
time python docs/benchmarks/lotkavolterra/run_lotkavolterra.py --start 3 --stop 12 --repeats 20 --save
time python docs/benchmarks/vanderpol/run_vanderpol.py --start 1 --stop 9 --repeats 3 --save
time python docs/benchmarks/pleiades/run_pleiades.py --start 3 --stop 11 --repeats 3 --save
time python docs/benchmarks/hires/run_hires.py --start 1 --stop 9 --repeats 10 --save
time python docs/benchmarks/taylor_node/run_taylor_node.py --max_time 12 --repeats 3 --save
time python docs/benchmarks/taylor_pleiades/run_taylor_pleiades.py --max_time 15 --repeats 5 --save
time python docs/benchmarks/taylor_fitzhughnagumo/run_taylor_fitzhughnagumo.py --max_time 15 --repeats 15 --save
make benchmarks-plot-results
benchmarks-dry-run:
time python docs/benchmarks/lotkavolterra/run_lotkavolterra.py --start 3 --stop 5 --repeats 2 --no-save
time python docs/benchmarks/vanderpol/run_vanderpol.py --start 1 --stop 3 --repeats 2 --no-save
time python docs/benchmarks/pleiades/run_pleiades.py --start 3 --stop 5 --repeats 2 --no-save
time python docs/benchmarks/hires/run_hires.py --start 1 --stop 3 --repeats 2 --no-save
time python docs/benchmarks/taylor_node/run_taylor_node.py --max_time 0.5 --repeats 2 --no-save
time python docs/benchmarks/taylor_fitzhughnagumo/run_taylor_fitzhughnagumo.py --max_time 0.5 --repeats 2 --no-save
time python docs/benchmarks/taylor_pleiades/run_taylor_pleiades.py --max_time 0.5 --repeats 2 --no-save
time python docs/benchmarks/taylor_fitzhughnagumo/run_taylor_fitzhughnagumo.py --max_time 0.5 --repeats 2 --no-save
make benchmarks-plot-results
clean:
pre-commit clean
git clean -xdf
doc:
# The readme is the landing page of the docs:
cp README.md docs/index.md
# Execute the examples manually and not via mkdocs-jupyter
# to gain clear error messages.
make example
make benchmarks-plot-results
JUPYTER_PLATFORM_DIRS=1 mkdocs build
find-dead-code:
vulture . --ignore-names case*,fixture*,*jvp --exclude probdiffeq/_version.py