Skip to content

Commit

Permalink
Change how sensor_names are associated with fwhm values for passing t…
Browse files Browse the repository at this point in the history
…o ts_ofc.
  • Loading branch information
jbkalmbach committed Dec 13, 2023
1 parent b4a4b2e commit 25e68f3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions python/lsst/ts/imsim/closed_loop_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -571,6 +571,12 @@ def _run_sim(
[sensor_wfe.sensor_name for sensor_wfe in list_of_wf_err]
)

# Only include the fwhm data from sensor we are simulating
# (e.g. only raft centers instead of full FAM).
if self.use_ccd_img:
fwhm_idx = [ref_sensor_name_list.index(sens_name) for sens_name in sensor_names]
fwhm = fwhm[fwhm_idx]

# Pass data to OFC
self.ofc_calc.set_fwhm_data(fwhm, sensor_names)

Expand Down

0 comments on commit 25e68f3

Please sign in to comment.