Spaces:
Sleeping
Sleeping
Update astro_core.py
Browse files- astro_core.py +7 -2
astro_core.py
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
|
|
| 1 |
# astro_core.py
|
| 2 |
"""
|
| 3 |
Core astrology calculation module.
|
|
@@ -73,8 +74,12 @@ class ChartCalculator:
|
|
| 73 |
tz = pytz.timezone(timezone)
|
| 74 |
birth_datetime = tz.localize(birth_datetime) if birth_datetime.tzinfo is None else birth_datetime
|
| 75 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 76 |
# Convert to flatlib datetime
|
| 77 |
-
date = Datetime(
|
| 78 |
pos = GeoPos(latitude, longitude)
|
| 79 |
|
| 80 |
# Calculate chart
|
|
@@ -141,4 +146,4 @@ class ChartCalculator:
|
|
| 141 |
def get_planet_aspects(self, chart_data: Dict[str, Any]) -> Dict[str, list]:
|
| 142 |
"""Calculate major aspects between planets"""
|
| 143 |
# TODO: Implement aspect calculation
|
| 144 |
-
return {}
|
|
|
|
| 1 |
+
|
| 2 |
# astro_core.py
|
| 3 |
"""
|
| 4 |
Core astrology calculation module.
|
|
|
|
| 74 |
tz = pytz.timezone(timezone)
|
| 75 |
birth_datetime = tz.localize(birth_datetime) if birth_datetime.tzinfo is None else birth_datetime
|
| 76 |
|
| 77 |
+
# Extract date and time components from birth_datetime
|
| 78 |
+
date_str = birth_datetime.strftime('%Y/%m/%d')
|
| 79 |
+
time_str = birth_datetime.strftime('%H:%M')
|
| 80 |
+
|
| 81 |
# Convert to flatlib datetime
|
| 82 |
+
date = Datetime(date_str, time_str, timezone)
|
| 83 |
pos = GeoPos(latitude, longitude)
|
| 84 |
|
| 85 |
# Calculate chart
|
|
|
|
| 146 |
def get_planet_aspects(self, chart_data: Dict[str, Any]) -> Dict[str, list]:
|
| 147 |
"""Calculate major aspects between planets"""
|
| 148 |
# TODO: Implement aspect calculation
|
| 149 |
+
return {}
|