The production D60 branch added one sign to 1-based even signs, with no source, while the repository's own guide and the vedastro mapping count from the sign itself. PyJHora agrees with the latter: 33/77 recorded times before, 77/77 after. - scripts/varga.py: D60 is (si+pi)%12 for odd and even signs; other mappings and the vedastro mode are untouched. - tests/test_d60_varga_mapping.py: 12 signs x 60 parts against PyJHora, plus the even-sign first part. - scripts/research/d60_two_way_run.py: the G1 reconciliation that found this, now in the repository with a test; G1 passes 77/77. - scripts/varga.py is part of the extended frozen identity, so the sealed holdout and the reported-offset sweep were re-frozen per ERR-110. All 20 and 900 trials match the upstream_sync9b records on every field and the metrics and summary are unchanged. Co-Authored-By: Grok (agent loop)
25 lines
830 B
Python
25 lines
830 B
Python
"""G1 contract for the D60 two-way study (issue #149, BUG-1500).
|
|
|
|
The gate compares the production D60 ascendant with PyJHora for every v5 case.
|
|
It must agree on all of them now that both count from the sign itself; the
|
|
payload must stay free of recorded birth times so it can be published.
|
|
"""
|
|
|
|
from __future__ import annotations
|
|
|
|
import pytest
|
|
|
|
|
|
def test_g1_agrees_with_pyjhora_on_every_v5_case() -> None:
|
|
pytest.importorskip("jhora.horoscope.chart.charts")
|
|
from scripts.research.d60_two_way_run import run
|
|
|
|
payload = run()
|
|
assert payload["dataset"]["cases"] == 77
|
|
assert payload["gate"]["matches"] == 77
|
|
assert payload["gate"]["passed"] is True
|
|
for row in payload["cases"]:
|
|
assert row["matches_pyjhora"] is True
|
|
assert "true_minute" not in row
|
|
assert "birth_time" not in row
|