-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
31 lines (21 loc) · 924 Bytes
/
Copy pathMakefile
File metadata and controls
31 lines (21 loc) · 924 Bytes
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
.PHONY: flagship-b flagship-b-ci flagship docker-build docker-flagship docker-cross-validate reproduce cross-validate test lint
flagship-b:
python3 scripts/flagship_flow_litho.py --seed-sweep
flagship-b-ci:
python3 scripts/flagship_flow_litho.py --seed-sweep --seed-end 44
flagship: flagship-b ## Alias for flagship-b
docker-build:
docker build -t diffcfd-flagship .
docker-flagship: docker-build
docker run --rm diffcfd-flagship
docker-cross-validate: docker-build
docker run --rm diffcfd-flagship python scripts/cross_validate.py
reproduce: ## One-key reproducibility (local, no docker)
python3 scripts/flagship_flow_litho.py --seed-sweep --seed-start 42 --seed-end 44
cross-validate: ## Run cross-validation against analytical solutions
python3 scripts/cross_validate.py
test:
python3 -m pytest tests/ -v --tb=short
lint:
ruff check --fix diffcfd/ tests/ scripts/
ruff format diffcfd/ tests/ scripts/