Skip to content
Snippets Groups Projects
Commit b9f85d41 authored by Gregory Ashton's avatar Gregory Ashton
Browse files

Alert user (without failing) if astropy is not installed

parent adfec1d1
No related branches found
No related tags found
No related merge requests found
...@@ -4,9 +4,13 @@ ...@@ -4,9 +4,13 @@
""" """
import numpy as np import numpy as np
import logging
try:
from astropy import units as u from astropy import units as u
from astropy.coordinates import SkyCoord from astropy.coordinates import SkyCoord
from astropy.time import Time from astropy.time import Time
except ImportError:
logging.warning('Python module astropy not installed')
# Assume Earth goes around Sun in a non-wobbling circle at constant speed; # Assume Earth goes around Sun in a non-wobbling circle at constant speed;
# Still take the zero longitude to be the Earth's position during the March # Still take the zero longitude to be the Earth's position during the March
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment