Skip to content

Use kaala instead of window for vaara-conditioned anga-touch checks - #35

Merged
karthikraman merged 1 commit into
masterfrom
claude/festival-computation-refactor-auzrk1
Aug 29, 2026
Merged

karthikraman merged 1 commit into
masterfrom
claude/festival-computation-refactor-auzrk1

Conversation

@karthikraman

Copy link
Copy Markdown
Collaborator

Summary

Companion data change for the jyotisha PR of the same title.

  • Replace window = "sunrise" with kaala = "sunrise" on vAjapEyaphala-snAna-yOgaH and jayantI~aSTamI
  • Replace window = "sunrise_to_purvaahna" with kaala = "puurvaahna" on kRSNAGgAraka-caturdazI-puNyakAlaH_or_yamatarpaNam and pizAcamOcanam
  • Add explicit kaala = "dinamaana" to bharaNI-yamArcanA and the two older aGgArakI~caturthI rules (previously relied on an implicit default, which left their auto-generated description text showing a mismatched "Sūryōdayaḥ"/sunrise label)

🤖 Generated with Claude Code


Generated by Claude Code

`window` reinvented what `kaala` (already an existing timing field,
resolved via DailyPanchaanga.get_interval) already does -- "sunrise"
duplicated get_interval's own zero-width-instant special case, and
"sunrise_to_purvaahna"/"sunrise_to_sunset" duplicated its generic
day_length_based_periods.puurvaahna/dinamaana lookup. Switching to kaala
reuses that existing machinery instead of hand-rolling it, and is open to
any other named kaala for free.

Also sets kaala explicitly (rather than relying on the implicit dinamaana
default) on the two older aGgArakI~caturthI rules, for consistent,
non-misleading auto-generated description text -- their kaala had
previously been left unset entirely, so the generic description template
was filling in its own default label ("Sūryōdayaḥ"/sunrise), which never
matched the anga-touch window (dinamaana) actually being checked.
@karthikraman
karthikraman merged commit 61b51d6 into master Aug 29, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants