diff --git a/astLib/__init__.py b/astLib/__init__.py index a7adda3..5cbf861 100644 --- a/astLib/__init__.py +++ b/astLib/__init__.py @@ -13,4 +13,4 @@ """ __all__=['astCalc', 'astCoords', 'astImages', 'astPlots', 'astStats', 'astWCS', 'astSED'] -__version__ = '0.13.0' +__version__ = '0.13.1' diff --git a/astLib/astCoords.py b/astLib/astCoords.py index 29891f5..f95383f 100755 --- a/astLib/astCoords.py +++ b/astLib/astCoords.py @@ -264,7 +264,7 @@ def calcAngSepDeg(RADeg1, decDeg1, RADeg2, decDeg2): r=numpy.degrees(numpy.arccos(a)) # Above gives nan when RADeg1, decDeg1 == RADeg1, decDeg2 - indexList=numpy.where(numpy.isnan(r) == True)[0] + indexList=numpy.where(numpy.isnan(numpy.atleast_1d(r)) == True)[0] tolerance=1e-6 if len(indexList) > 0: for index in indexList: diff --git a/setup.py b/setup.py index 3421e13..e85cfe8 100644 --- a/setup.py +++ b/setup.py @@ -58,7 +58,7 @@ def build_extensions(self): build_ext.build_extensions(self) setup(name='astLib', - version='0.13.0', + version='0.13.1', packages=['astLib', 'PyWCSTools'], package_data={'astLib': ['data/*']}, cmdclass={"build_ext": build_PyWCSTools_ext},