Skip to content

Commit

Permalink
Duplicate wavelength calibration output when using line lists in the …
Browse files Browse the repository at this point in the history
…old format.
  • Loading branch information
nicocardiel committed Oct 13, 2017
1 parent 7b84fc7 commit 9903ceb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions megaradrp/recipes/calibration/arc.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,13 +216,16 @@ def run(self, rinput):
final.meta_info['origin']['frames'] = cdata

if data_wlcalib is None:
# make initial_master_wlcalib = master_wlcalib in output
return self.create_result(
reduced_image=reduced2d,
reduced_rss=reduced_rss,
initial_master_wlcalib=initial_data_wlcalib,
master_wlcalib=initial_data_wlcalib,
fwhm_image=fwhm_image
)
else:
# copy metadata from initial_master_wlcalib to master_wlcalib
data_wlcalib.tags = deepcopy(initial_data_wlcalib.tags)
data_wlcalib.meta_info = deepcopy(initial_data_wlcalib.meta_info)
return self.create_result(
Expand Down

0 comments on commit 9903ceb

Please sign in to comment.