Skip to content

Commit

Permalink
Update readfibermaps.py
Browse files Browse the repository at this point in the history
Fixed bug when no fibers are assigned to targets
  • Loading branch information
Sean-Morrison committed Nov 21, 2024
1 parent 289fe7e commit abb1c6e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions python/boss_drp/prep/readfibermaps.py
Original file line number Diff line number Diff line change
Expand Up @@ -1375,6 +1375,8 @@ def get_mags_astrom(search_table, db = True, fps=False, fast=False, release='sds

if db is True:
splog.info('Getting Magnitudes, IDs, and Astrometry from SDSSDB')
if len(search_table[search_table['icatalogid']!= -999]) == 0:
return(search_table)
u_s_table = search_table[search_table['icatalogid']!= -999].group_by('icatalogid')
u_s_table = u_s_table[u_s_table.groups.indices[:-1]]
catalogids = np.unique(search_table['icatalogid'].data).tolist()
Expand Down

0 comments on commit abb1c6e

Please sign in to comment.