Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Sean-Morrison committed Jan 28, 2022
1 parent 74422c1 commit 9e23cd6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bin/run_PyXCSAO.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def get_fiber(flux, PlugMap, hdr, i):

meta['mjd']=hdr['MJD']
meta['TARGET_INDEX']=PlugMap['TARGET_INDEX'][i]
if 'FIBERID_LIST' in PlugMap.colnames:
if 'FIBERID_LIST' in PlugMap.names:
meta['FIBERID_LIST']=PlugMap['FIBERID_LIST'][i]
#meta['fiber']=PlugMap['FIBERID'][i]
#meta['snr']=PlugMap['SN_MEDIAN_ALL'][i]
Expand Down
4 changes: 2 additions & 2 deletions pro/spec1d/reformat_spec.pro
Original file line number Diff line number Diff line change
Expand Up @@ -451,8 +451,8 @@ CPU, TPOOL_NTHREADS = 1
; single_file=single_basefile+plug_target.targetid+'.fits'
single_file=single_basefile+strtrim(plug_target.catalogid,2)+'.fits'
endelse
print,single_file
print,plug_target.catalogid
; print,single_file
; print,plug_target.catalogid
junk = mrdfits(single_file,0,hdr0,/silent)
coadd = mrdfits(single_file,1,/silent)
values_t=replicate(create_struct('model',0.0),n_elements(coadd.flux))
Expand Down

0 comments on commit 9e23cd6

Please sign in to comment.