Skip to content

Commit

Permalink
Fix small bug in southern-hemisphere association
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandergagliano committed Apr 22, 2024
1 parent 1905fe0 commit 0a1c69d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion astro_ghost/DLR.py
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,6 @@ def chooseByDLR(path, hosts, transients, fn, orig_dict, todo="s"):
#Subset so that we're less than 5 in DLR units
#Tentative selection of the host with lowest DLR
chosenHost = min(R_dict, key=R_dict.get)
print(chosenHost) #this is the right host!

if R_dict[chosenHost] > 5.0:
#If we can't find a host, say that this galaxy has no host
Expand Down
4 changes: 2 additions & 2 deletions astro_ghost/PS1QueryFunctions.py
Original file line number Diff line number Diff line change
Expand Up @@ -779,8 +779,8 @@ def southernSearch(ra, dec, rad):

#add the photometry columns
tempDF = dfPhot[dfPhot['filter']==filter]
if len(tempDF) <1:
tempDF.append(pd.Series(), ignore_index=True) #add dummy row for the sake of not crashing
if len(tempDF) < 1:
pd.concat([tempDF, pd.Series()], ignore_index=True) #add dummy row for the sake of not crashing
for col in tempDF.columns.values:
if col != 'object_id':
tempDF[filter + col] = tempDF[col]
Expand Down
2 changes: 1 addition & 1 deletion astro_ghost/_version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '2.1.1'
__version__ = '2.1.2'
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

from setuptools import setup

version = "2.1.1"
version = "2.1.2"

VERSION_TEMPLATE = """
Note that we need to fall back to the hard-coded version if either
Expand Down

0 comments on commit 0a1c69d

Please sign in to comment.