Skip to content

Commit

Permalink
Merge pull request #59 from lsst-camera-dh/LSSTTD-1477_mask_handling_…
Browse files Browse the repository at this point in the history
…bugfix

load HarnessedJobFilePath server if either badpixel_run or bias_run is set
  • Loading branch information
jchiang87 authored Apr 8, 2020
2 parents bf0ae4c + 53b8a0e commit a8437a4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion python/bot_eo_analyses.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,12 @@ def get_mask_files(det_name):
"""
badpixel_run = siteUtils.get_analysis_run('badpixel')
bias_run = siteUtils.get_analysis_run('bias')
if badpixel_run is not None:

if badpixel_run is not None or bias_run is not None:
with open('hj_fp_server.pkl', 'rb') as fd:
hj_fp_server = pickle.load(fd)

if badpixel_run is not None:
mask_files = hj_fp_server.get_files('pixel_defects_BOT',
f'{det_name}*mask*.fits',
run=badpixel_run)
Expand Down

0 comments on commit a8437a4

Please sign in to comment.