# Grader regression suite and reference-build targets. Needs a Python with
# numpy + scipy + lasio + pytest (conda env from environment.yml); override
# with `make test PYTHON=/path/to/python`.
PYTHON ?= python3

.PHONY: test grade reference zones fixtures redact audit

# Full suite, ~4 s (grades the fourteen shipped fixtures + synthetic gate cases).
test:
	$(PYTHON) -m pytest tests -v

# Grade one delivery: make grade LAS=path/to/well_digitized.las
grade:
	$(PYTHON) grader/grade_las.py $(LAS)

# Regenerate reference-derived artifacts (deterministic).
reference:
	cd data_gen && $(PYTHON) build_reference.py

zones:
	cd data_gen && $(PYTHON) build_hard_zones.py

fixtures:
	cd data_gen && $(PYTHON) make_fixtures.py

# Rebuild the redacted agent-facing scans and their audit renders.
redact:
	cd data_gen && $(PYTHON) redact.py

audit:
	cd data_gen && $(PYTHON) audit_text.py
