Removed pyslalib from required dependencies (now optional)

This commit is contained in:
yosata committed 2020-06-07 18:58:30 +02:00
1 parent ed1fbcbc04
commit 56051bb6a5
2 files changed
+10 -6

No files matched your search

+6 -1
View File
@@ -193,7 +193,12 @@ def slalib(l, T=288.15, p=101325, H=0, h=0, lat=-24, tlr=0.0065, eps=1e-10):
Returns:
n - Refractive index of atmospheric air at the given conditions
'''
from pyslalib import slalib
try:
from pyslalib import slalib
except ImportError as e:
print('pySLALIB package not found! Try installing it first.\nReturning n=1.')
return 1
zObs = np.deg2rad(45.06563)
p = p/100
R = []