Spaces:
Sleeping
Sleeping
Update astro_core.py
Browse files- astro_core.py +6 -2
astro_core.py
CHANGED
|
@@ -21,8 +21,12 @@ class ChartCalculator:
|
|
| 21 |
Calculate birth chart positions
|
| 22 |
Returns a dictionary of planetary positions and house cusps
|
| 23 |
"""
|
| 24 |
-
# Convert to flatlib
|
| 25 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 26 |
pos = GeoPos(latitude, longitude)
|
| 27 |
|
| 28 |
# Calculate chart
|
|
|
|
| 21 |
Calculate birth chart positions
|
| 22 |
Returns a dictionary of planetary positions and house cusps
|
| 23 |
"""
|
| 24 |
+
# Convert datetime to format required by flatlib
|
| 25 |
+
date_str = birth_datetime.strftime("%Y/%m/%d")
|
| 26 |
+
time_str = birth_datetime.strftime("%H:%M")
|
| 27 |
+
|
| 28 |
+
# Create flatlib datetime object
|
| 29 |
+
date = Datetime(date_str, time_str, timezone)
|
| 30 |
pos = GeoPos(latitude, longitude)
|
| 31 |
|
| 32 |
# Calculate chart
|