From 64de85e8deaaaa4a6ec2d1e2390fae7ff416e905 Mon Sep 17 00:00:00 2001 From: Matt Hilton Date: Thu, 23 Oct 2025 16:59:04 +0200 Subject: [PATCH] Bug fix, version bump --- astLib/__init__.py | 2 +- astLib/astCoords.py | 2 +- setup.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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},