# Makefile for EMCAD .PHONY: help install install-dev test lint format clean train test-model docs help: @echo "Available commands:" @echo " install Install the package" @echo " install-dev Install the package with development dependencies" @echo " test Run tests" @echo " lint Run linting" @echo " format Format code" @echo " clean Clean temporary files" @echo " train Train the model" @echo " test-model Test the model" @echo " docs Generate documentation" install: pip install -e . install-dev: pip install -e ".[dev,docs]" pre-commit install test: pytest tests/ -v --cov=src --cov-report=html lint: flake8 src/ tests/ mypy src/ format: black src/ tests/ isort src/ tests/ clean: find . -type f -name "*.pyc" -delete find . -type d -name "__pycache__" -delete rm -rf .coverage htmlcov build dist rm -rf .pytest_cache rm -rf .mypy_cache train: python train_synapse.py --root_path ./data/Synapse/train_npz --volume_path ./data/Synapse/test_vol_h5 --encoder pvt_v2_b2 --batch_size 2 --max_epochs 50 --max_iterations 2000 test-model: python test_synapse.py --volume_path ./data/synapse/test_vol_h5 --encoder pvt_v2_b2 docs: cd docs && make html