Skip to content

Commit

Permalink
Update fieldmerge.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Sean-Morrison committed Nov 11, 2024
1 parent 1c42115 commit 289fe7e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions python/boss_drp/post/fieldmerge.py
Original file line number Diff line number Diff line change
Expand Up @@ -1113,8 +1113,12 @@ def write_spAll(spAll, spline, spAll_lite, indir, run2d, datamodel, line_datamod
hdul = None
if spAll_lite is not None:
spAll = Table(spAll.data)
spAll.remove_columns(list(filter(lambda x: x not in ['delta_ra','delta_dec'], spAll_lite.colnames)))
spall.remove_columns(['DELTA_RA_LIST','DELTA_DEC_LIST'])
for col in spAll_lite.colnames:
try:
spAll.remve_column(col)
except:
pass
#spAll.remove_columns(list(filter(lambda x: x not in ['delta_ra','delta_dec'], spAll_lite.colnames)))
spAll = hstack([spAll, spAll_lite], join_type = 'exact')
else:
spAll = None
Expand Down

0 comments on commit 289fe7e

Please sign in to comment.