Skip to content

Commit

Permalink
load HarnessedJobFilePath server if either badpixel_run or bias_run i…
Browse files Browse the repository at this point in the history
…s set
  • Loading branch information
jchiang87 committed Apr 7, 2020
1 parent bf0ae4c commit 53b8a0e
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 53b8a0e

Please sign in to comment.