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
34 lines
1.5 KiB
Python
34 lines
1.5 KiB
Python
"""Lagnamsaka Dasha adapter over the profiled Narayana sign engine."""
|
|
from typing import Dict
|
|
|
|
try:
|
|
from .narayana_dasha import calc_narayana_mahadasha
|
|
except ImportError: # pragma: no cover - scripts/ on sys.path
|
|
from narayana_dasha import calc_narayana_mahadasha
|
|
|
|
|
|
def calculate_lagnamsaka_dasha(
|
|
lagnamsaka_sign_idx: int, planet_lons: Dict[str, float], *,
|
|
duration_profile: str = "jaimini_odd_footed_v1",
|
|
sequence_profile: str = "jaimini_general_order_v1",
|
|
dual_lord_profile: str = "jaimini_dual_lord_source_v1",
|
|
cycle_count: int = 1,
|
|
) -> Dict[str, object]:
|
|
if cycle_count != 1:
|
|
# Local Narayana engine has no cycle_count (upstream does).
|
|
raise ValueError("only the first Lagnamsaka cycle is available locally")
|
|
if not 0 <= int(lagnamsaka_sign_idx) < 12:
|
|
raise ValueError("lagnamsaka_sign_idx must be in [0, 11]")
|
|
periods = calc_narayana_mahadasha(
|
|
int(lagnamsaka_sign_idx), planet_lons,
|
|
duration_profile=duration_profile,
|
|
sequence_profile=sequence_profile,
|
|
seed_profile="legacy_lagna_v0",
|
|
dual_lord_profile=dual_lord_profile,
|
|
)
|
|
return {"system": "lagnamsaka_dasha", "status": "executed",
|
|
"seed": {"kind": "lagnamsaka_rasi", "sign_index": int(lagnamsaka_sign_idx)},
|
|
"profiles": {"duration": duration_profile, "sequence": sequence_profile, "dual_lord": dual_lord_profile},
|
|
"periods": periods,
|
|
"claim_boundary": "Lagnamsaka seed is explicit; Narayana duration/sequence profiles remain selectable."}
|