removed dependency on astropy