Skip to content

Commit d7a44ca

Browse files
authored
Merge pull request #186 from Keck-DataReductionPipelines/develop
Fix overconstrained bias matching and bad master_object naming
2 parents 850ef4b + 7fecf37 commit d7a44ca

3 files changed

Lines changed: 4 additions & 8 deletions

File tree

kcwidrp/core/kcwi_proctab.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -158,10 +158,6 @@ def search_proctab(self, frame, target_type=None, target_group=None,
158158
self.log.info('Looking for frames with CCDCFG = %s' %
159159
frame.header['CCDCFG'])
160160
tab = tab[(tab['DID'] == int(frame.header['CCDCFG']))]
161-
if target_group is not None:
162-
self.log.info('Looking for frames with GRPID = %s' %
163-
target_group)
164-
tab = tab[(tab['GRPID'] == target_group)]
165161
# raw DARKS must have the same CCDCFG and TTIME
166162
elif target_type == 'DARK':
167163
self.log.info('Looking for frames with CCDCFG = %s and '

kcwidrp/primitives/MakeMasterContbars.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def _perform(self):
6262
stack = []
6363
stackf = []
6464
for cbs in combine_list:
65-
# get arc intensity (int) image file name in redux directory
65+
# get cbars intensity (int) image file name in redux directory
6666
stackf.append(strip_fname(cbs) + '_int.fits')
6767
cbsfn = os.path.join(self.config.instrument.cwd, self.config.instrument.output_directory, stackf[-1])
6868
# using [0] gets just the image data
@@ -86,7 +86,7 @@ def _perform(self):
8686
stacked.header['HISTORY'] = log_string
8787
self.action.args.ccddata = stacked
8888

89-
# get master arc output name
89+
# get master cbars output name
9090
mcbars_name = strip_fname(combine_list[0]) + '_' + suffix + '.fits'
9191

9292
kcwi_fits_writer(stacked, output_file=mcbars_name,

kcwidrp/primitives/MakeMasterObject.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ def _perform(self):
101101
"stack input file")
102102
stacked.header['HISTORY'] = log_string
103103
self.action.args.ccddata = stacked
104-
mobj_name = get_master_name(combine_list, "mobj")
104+
mobj_name = strip_fname(combine_list[0]) + '_' + suffix + '.fits'
105105
kcwi_fits_writer(stacked, output_file=mobj_name,
106106
output_dir=self.config.instrument.output_directory)
107107
self.context.proctab.update_proctab(frame=stacked, suffix=suffix,
@@ -110,7 +110,7 @@ def _perform(self):
110110
# self.action.args.name = mobj_name
111111
# self.action.args.name = stacked.header['OFNAME']
112112
else:
113-
mobj_name = get_master_name(combine_list, "mobj")
113+
mobj_name = strip_fname(combine_list[0]) + '_' + suffix + '.fits'
114114
self.action.args.ccddata.header['IMTYPE'] = args.new_type
115115
self.action.args.ccddata.header['HISTORY'] = log_string
116116
kcwi_fits_writer(self.action.args.ccddata, output_file=mobj_name,

0 commit comments

Comments
 (0)