-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathmakefile
More file actions
67 lines (55 loc) · 2.9 KB
/
makefile
File metadata and controls
67 lines (55 loc) · 2.9 KB
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
format-and-lint:
pre-commit run --all-files
test:
pytest -n auto -v -Werror # parallelise, verbose output, warnings as errors
quickstart:
# Run some code without installing any of the optional dependencies
# Otherwise, it's unclear whether the listed main dependencies
# are specified correctly. This avoids issues like
# https://github.com/pnkraemer/probdiffeq/issues/810
python docs/examples_quickstart/*.py
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 7 --save
time python docs/benchmarks/vanderpol/run_vanderpol.py --start 1 --stop 8 --repeats 3 --save --no-diffrax # Skip Diffrax for now
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 7 --save --no-diffrax # Skip Diffrax for now
time python docs/benchmarks/taylor_node/run_taylor_node.py --max_time 8 --repeats 3 --save
time python docs/benchmarks/taylor_pleiades/run_taylor_pleiades.py --max_time 8 --repeats 3 --save
time python docs/benchmarks/taylor_fitzhughnagumo/run_taylor_fitzhughnagumo.py --max_time 8 --repeats 3 --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 --no-diffrax # Skip Diffrax for now
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 --no-diffrax # Skip Diffrax for now
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
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
doc-serve:
# 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 serve
find-dead-code:
vulture . --ignore-names case*,fixture*,*jvp --exclude probdiffeq/_version.py