jyotisham / jyotisha

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

Good to have option of knowing Purnimanta month as well #152

Open oit-sunil-chaurasia opened 1 month ago

oit-sunil-chaurasia commented 1 month ago

Hi,

We can see that the repository already has support for Amanta masa, It would be great if we can have the same for Purnimanta as well.

Or if possible to share some sudo logic, so that I can try out building that @vvasuki @karthikraman

Thanks

vvasuki commented 1 month ago

Should already be possible - https://github.com/jyotisham/jyotisha/commit/697988a9910e5b10e0bebf02ae0bfdf300cfacd7. Knowing both AmAnta and pURNimAnta months without separate panchAnga generations would be good though - so leaving this open

oit-sunil-chaurasia commented 1 month ago

Hi @vvasuki ,

Tried with given computation system to pull purnimanta masa

computation_system=ComputationSystem.MULTI_FULL_MOON_SIDEREAL_MONTH_ADHIKA__CHITRA_180

Still I do see lunar_date.month is same as Amanta masa

Eg of generating Panchanga

periodical.Panchaanga( city=city, start_date=start_date, end_date=end_date, year_type=era.ERA_KALI, computation_system=ComputationSystem.MULTI_FULL_MOON_SIDEREAL_MONTH_ADHIKA__CHITRA_180, recompute_festivals=False )

Sample date used 23-06-2024, expecting Ashada(Index=4) but getting lunar_date.month is 3.

Please guide me, if I am using it in wrong way.

vvasuki commented 1 month ago

Usage is correct. I may have fixed with https://github.com/jyotisham/jyotisha/commit/40fddf64c68a757c4745ae096e9f80b90af62a7c If not, please debug and send a PR.

oit-sunil-chaurasia commented 1 month ago

This is working as expected @vvasuki

Thanks you.