fix(yogini): use Goel Table I order and birth balance (BUG-1262, upstream 1918ffaf)

This commit is contained in:
jesse-ux
2026-10-07 16:48:25 +08:00
parent ab9e30560a
commit 3adb2460e3
5 changed files with 156 additions and 180 deletions
+10
View File
@@ -302,6 +302,16 @@ class OrchestratorBridge:
else:
info["moon_pada"] = 1
moon_longitude = data.get("moon_longitude")
if moon_longitude is None:
chart = data.get("chart") or data.get("natal_chart") or {}
planets = data.get("planets") or chart.get("planets") or {}
moon = planets.get("Moon") or planets.get("moon") if isinstance(planets, dict) else None
if isinstance(moon, dict):
moon_longitude = moon.get("longitude", moon.get("degree", moon.get("lon")))
if moon_longitude is not None:
info["moon_longitude"] = float(moon_longitude)
return info if info.get("birth_datetime") else None
def _add_dasha_timing_anchor(