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

lat lon as inputs still use 'London' as location default #41

Closed paladinic closed 2 years ago

paladinic commented 2 years ago

When the lat, lng inputs are passed to the KrInstance function it ignores those inputs and uses 'London' as the country.

g-battaglia commented 2 years ago

Hi, to prevent the fallback location (London) you should always pass also the timezone string, eg:

KrInstance("Test", 1993, 10, 10, 12, 12, lng=2.1, lat=2.1, tz_str='Europe/Rome')

I'll put an errore when the location fallback starts so it will be easier to catch those errors.