Skip to content

Commit

Permalink
Merge pull request #9 from lsst-camera-dh/LSSTTD-1159
Browse files Browse the repository at this point in the history
Fix overscan profile plots in raft-level CTE analysis
  • Loading branch information
jchiang87 authored Oct 18, 2017
2 parents 56f433a + 2a5b81e commit d273c7f
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion harnessed_jobs/cte_raft/v0/producer_cte_raft.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
Producer script for raft-level CTE analysis.
"""
from __future__ import print_function
import os
import shutil
import glob
import lsst.eotest.sensor as sensorTest
import siteUtils
Expand All @@ -24,6 +26,12 @@ def run_cte_task(sensor_id):
for mask_file in mask_files:
print(" " + mask_file)

results_file \
= siteUtils.dependency_glob('%s_eotest_results.fits' % sensor_id,
jobname='fe55_raft_analysis',
description='Fe55 results file')[0]
shutil.copy(results_file, os.path.basename(results_file))
results_file = os.path.basename(results_file)
sflat_high_files = \
siteUtils.dependency_glob('S*/%s_sflat_500_flat_H*.fits' % sensor_id,
jobname=siteUtils.getProcessName('sflat_raft_acq'),
Expand All @@ -40,7 +48,6 @@ def run_cte_task(sensor_id):
task.run(sensor_id, sflat_low_files, flux_level='low', gains=gains,
mask_files=mask_files)

results_file = '%s_eotest_results.fits' % sensor_id
plots = sensorTest.EOTestPlots(sensor_id, results_file=results_file)

superflat_files = sorted(glob.glob('%s_superflat_*.fits' % sensor_id))
Expand Down

0 comments on commit d273c7f

Please sign in to comment.