From 9ebd75618d68dbfe71322c24187aac92c38fa94b Mon Sep 17 00:00:00 2001 From: alexandergagliano Date: Thu, 28 Mar 2024 19:24:50 -0400 Subject: [PATCH] small bugfix --- astro_ghost/_version.py | 2 +- astro_ghost/ghostHelperFunctions.py | 3 ++- setup.py | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/astro_ghost/_version.py b/astro_ghost/_version.py index 3e97ba8..a33997d 100644 --- a/astro_ghost/_version.py +++ b/astro_ghost/_version.py @@ -1 +1 @@ -__version__ = '2.0.19' +__version__ = '2.1.0' diff --git a/astro_ghost/ghostHelperFunctions.py b/astro_ghost/ghostHelperFunctions.py index 0e251fb..5a1a291 100644 --- a/astro_ghost/ghostHelperFunctions.py +++ b/astro_ghost/ghostHelperFunctions.py @@ -887,7 +887,8 @@ def findNewHosts(transientName, transientCoord, snClass, verbose=False, starcut= with open(path+"/dictionaries/" + "Final_Dictionary.p", 'wb') as fp: dump(final_dict, fp) - host_DF = checkSimbadHierarchy(host_DF, verbose=verbose) + if len(host_DF) > 0: + host_DF = checkSimbadHierarchy(host_DF, verbose=verbose) #a few final cleaning steps #first, add back in some features diff --git a/setup.py b/setup.py index 93d9d75..c2674f1 100755 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ from setuptools import setup -version = "2.0.19" +version = "2.1.0" VERSION_TEMPLATE = """ Note that we need to fall back to the hard-coded version if either