g-battaglia / kerykeion

Data driven Astrology 💫
Kerykeion is a python library for astrology. It can generate SVG charts and extract all data about a birthchart, a synastry chart and a transit chart.
https://kerykeion.net
GNU Affero General Public License v3.0
297 stars 103 forks source link

astrological_subject.py #103

Closed must-be-rohit closed 2 months ago

must-be-rohit commented 7 months ago

For Sidereal calculation update the mode from Fagan to Lahiri

  if self.zodiac_type == "Sidereal":
        self._iflag += swe.FLG_SIDEREAL
        #mode = "SIDM_FAGAN_BRADLEY"
        mode = "SIDM_LAHIRI"
        swe.set_sid_mode(getattr(swe, mode))
g-battaglia commented 6 months ago

Hi, it's ok but the best option should be to be able to chose what kind of sideral mode to use, not just default on SIDM_LAHIRI

g-battaglia commented 2 months ago

Functionality implemented, here an example:

johnny = AstrologicalSubject("Johnny Depp", 1963, 6, 9, 0, 0, "Owensboro", "US", zodiac_type="Sidereal", sidereal_mode="LAHIRI")