Port from yinduzhanxing 5fb8379c (MIT): Naisargika, Kaala, Karaka, Tara, Lagnamsaka, Yogardha, Mandooka, Paryaaya and Padanadhamsa dashas; Sarvatobhadra, Kota and Kalanala chakras; Nakshatra Latta; Pachakadi; Raman Amsayu and Pindayu. Producers and their upstream tests are copied; scripts/upstream_technique_layers.py feeds them our natal and transit positions and attaches chart.consultation_native_layers.upstream_techniques. - dasha_registry: kaala and padanadhamsa keys (35 -> 37); the nine ported dashas are served by compute_dasha or fail closed with upstream's reason. - technique_registry.json: 16 partial entries; README badges follow. - Evidence lookup section `upstream_techniques` in the consultation tool. - Boundaries: Kalanala carries no PyJHora (AGPL) grid coordinates; Padanadhamsa/Lagnamsaka run on our Narayana engine (no Rath Table 12, PVR co-lord variants or second cycle). PyJHora observers and the Amsayu worked-example scaffold live in scripts/research (root .py budget). - PyJHora black-box cross-checks: Naisargika (lords/years) and Kaala (seed segment and fraction within 5e-4) on a public chart. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DbBXoyn7Hj3LCW3BUs5bZ8
17 lines
874 B
Python
17 lines
874 B
Python
"""Paryaaya Dasha structural producer with explicit lineage profiles."""
|
|
from typing import Mapping, Sequence
|
|
|
|
|
|
def calculate_paryaaya_dasha(sequence: Sequence[int], durations: Mapping[int, float], *, mode: str) -> dict:
|
|
if mode not in {"chara", "sthira", "ubhaya"}:
|
|
raise ValueError("mode must be chara, sthira or ubhaya")
|
|
seq = [int(s) % 12 for s in sequence]
|
|
if len(seq) != 12 or len(set(seq)) != 12:
|
|
raise ValueError("sequence must contain all twelve signs")
|
|
missing = [s for s in seq if s not in durations]
|
|
if missing:
|
|
raise ValueError(f"missing durations: {missing}")
|
|
return {"system": "paryaaya_dasha", "status": "executed", "mode": mode,
|
|
"periods": [{"sign_index": s, "years": float(durations[s])} for s in seq],
|
|
"claim_boundary": "Paryaaya mode, sequence and sign spans are explicit inputs."}
|