diff --git a/bin/run_PyXCSAO.py b/bin/run_PyXCSAO.py index c8a43d6a..35abe951 100755 --- a/bin/run_PyXCSAO.py +++ b/bin/run_PyXCSAO.py @@ -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] diff --git a/pro/spec1d/reformat_spec.pro b/pro/spec1d/reformat_spec.pro index 7c895932..619badbe 100644 --- a/pro/spec1d/reformat_spec.pro +++ b/pro/spec1d/reformat_spec.pro @@ -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))