You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: support object name parsing in parse_coordinates
- Added SkyCoord.from_name() support for object names like 'M31'
- Try parsing as 'RA Dec' numbers first
- Then try object name resolution (requires network)
- Finally try coordinate string parsing
- Updated error message to include object name examples
# Do not exit here, just print error and return None
82
94
console.print(
83
95
f"[bold red]Error: Could not parse coordinates '{coords_str}'.[/bold red]"
84
96
)
85
97
console.print(f"[yellow]Details: {e1}[/yellow]")
86
98
console.print(
87
-
f"[yellow]Ensure format is recognized by Astropy (e.g., '10.68h +41.26d', '10d30m0s 20d0m0s', '150.0 2.0' for deg).[/yellow]"
99
+
f"[yellow]Ensure format is recognized by Astropy (e.g., '10.68h +41.26d', '10d30m0s 20d0m0s', '150.0 2.0' for deg, or an object name like 'M31').[/yellow]"
0 commit comments