jyotisham / jyotisha

Python tools for the astronomical / astrological vedAnga of Hindus
MIT License
88 stars 52 forks source link

Good to have Abhijit Muhurat and Amrit Kala #146

Closed oit-sunil-chaurasia closed 3 months ago

oit-sunil-chaurasia commented 3 months ago

A lot of daily panchanga users referring to Abhijit Muhurat and Amrit Kala in their local panchangas, it would be great to add this as well along with other intervals in the Repository

karthikraman commented 3 months ago

These are already present - pls. check interval.py daily_panchaanga.day_length_based_periods.fifteen_fold_division (I think kutapa is same as abhijit) Amrit kala is also present as far as I know - panchaanga.amrita_data[d]

Pls. confirm and close the issue.

oit-sunil-chaurasia commented 3 months ago

Thank you for your response, Sir.

I have reviewed the code and can confirm that both points you mentioned have already been addressed. However, I have noticed an issue with the amrita_data. I am using the following code to generate the amrita_data:

nak = NakshatraAssigner(panchaanga=pPanchaanga) nak.calc_nakshatra_tyaajya_amrta()

After running this code, I observe that the amrita_data is generated for the previous day instead of the requested date. I might be overlooking something here.

I have attached the response for your reference. Please correct me here if I am doing anything wrong.

Screenshot 2024-05-16 at 9 39 16 PM

karthikraman commented 3 months ago

As seen here, the data are assigned to not the calendar day, but the panchaanga day, i.e. sunrise → next sunrise.. hope this helps.

oit-sunil-chaurasia commented 3 months ago

Understood