-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathexplore_chart.py
More file actions
28 lines (23 loc) · 1.02 KB
/
explore_chart.py
File metadata and controls
28 lines (23 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
from openastro2.openastro2 import openAstro
# Create test chart
event = openAstro.event('Test', 2000, 1, 1, 12, 0, 0)
chart = openAstro(event, type="Radix")
# Find planet-related attributes
planet_attrs = [attr for attr in dir(chart) if 'planet' in attr.lower()]
print("Planet-related attributes:", planet_attrs)
# Find degree-related attributes
degree_attrs = [attr for attr in dir(chart) if 'degree' in attr.lower()]
print("Degree-related attributes:", degree_attrs)
# Find sign-related attributes
sign_attrs = [attr for attr in dir(chart) if 'sign' in attr.lower()]
print("Sign-related attributes:", sign_attrs)
# Try to access some common attributes
try:
if hasattr(chart, 'planets_degree_ut'):
print(f"planets_degree_ut: {chart.planets_degree_ut[:5]}")
if hasattr(chart, 'planets_sign'):
print(f"planets_sign: {chart.planets_sign[:5]}")
if hasattr(chart, 'houses_degree_ut'):
print(f"houses_degree_ut: {chart.houses_degree_ut[:5]}")
except Exception as e:
print(f"Error accessing attributes: {e}")