Skip to content

Commit

Permalink
Merge pull request #45 from lsst-camera-dh/LSSTTD-1438_camera_info_ca…
Browse files Browse the repository at this point in the history
…che_file

refactor installed raft handling to ensure that cache file is written
  • Loading branch information
jchiang87 authored Sep 20, 2019
2 parents f0c3261 + 8072a3e commit 55ab4d0
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions python/bot_eo_analyses.py
Original file line number Diff line number Diff line change
Expand Up @@ -718,12 +718,15 @@ def run_jh_tasks(*jh_tasks, device_names=None, processes=None, walltime=3600):
if device_names is None:
device_names = camera_info.get_det_names()

# Restrict to installed rafts or sensors.
# Restrict to installed rafts or sensors. This function call
# also writes the camera_info cache file for the eT db query.
installed_rafts = camera_info.get_installed_raft_names()

# Check if rafts are over-ridden in the lcatr.cfg file.
override_rafts = os.environ.get('LCATR_RAFTS', None)
if override_rafts is not None:
installed_rafts = override_rafts.split('_')
else:
installed_rafts = camera_info.get_installed_raft_names()

device_names = [_ for _ in device_names if _[:3] in installed_rafts]

cwd = os.path.abspath('.')
Expand Down

0 comments on commit 55ab4d0

Please sign in to comment.