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
298 stars 103 forks source link

Improvment: the ability to get only transits aspects to natal chart or vice versa #59

Closed javonnii closed 7 months ago

javonnii commented 1 year ago

from kerykeion import KrInstance, MakeSvgInstance

def create_svg_chart(name1, year1, month1, day1, hour1, minute1, city1, country1, zodica_type1, name2, year2, month2, day2, hour2, minute2, city2, country2, zodica_type2):

first = KrInstance(name1, year1, month1, day1, hour1, minute1, city1, country1, zodica_type1)
second = KrInstance(name2, year2, month2, day2, hour2, minute2, city2, country2, zodica_type2)

name = CompositeAspects(first, second)
# get the aspects from transits to natal
aspect_list = name.get_relevant_aspects() # This still gives me too many aspects, I only want the aspect from transits to natal. 

df = pd.DataFrame(aspect_list)
return df 
g-battaglia commented 7 months ago

Closing, not in plan so far