Closed karthikraman closed 3 years ago
Not clear from just looking at the code - no escaping breakpoints and debugging this time it seems :-)
The following lines don't have any effect it seems:
tithi_festival.TithiFestivalAssigner(panchaanga=panchaanga).assign_solar_sidereal_amaavaasyaa()
tithi_festival.TithiFestivalAssigner(panchaanga=panchaanga).assign_amaavaasya_soma()
tithi_festival.TithiFestivalAssigner(panchaanga=panchaanga).assign_amaavaasya_vyatiipaata()
panchaanga.update_festival_details()
Am I missing some assignment or something?
update_festival_details
Thought to mention it earlier, but didn't (thinking that you'll notice it while running the debugger anyway) - first line of update_festival_details is self._reset_festivals(), which makes all prior lines useless. Simplest thing is to run the code line by line in debug mode and inspect the state of variables (I use Intellij Idea Ultimate with PyCharm - quite good. Since you're an academic, you can get a free educational license).
What am I doing wrong in the above snippet of code? The solar & tithi_festivals don't show up... Something very obvious I must've missed :)