Skip to content

Commit

Permalink
implementing FIBCALIB keyword for std fiber selection
Browse files Browse the repository at this point in the history
  • Loading branch information
ajmejia committed Feb 6, 2024
1 parent a45ee6f commit dae2bd6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion python/lvmdrp/functions/run_twilights.py
Original file line number Diff line number Diff line change
Expand Up @@ -346,8 +346,10 @@ def combine_twilight_sequence(expnums: List[int], camera: str, output_dir: str)
mflat._error[select_nonstd] = np.sqrt(mflat._error[select_nonstd]**2 + hflat._error[select_nonstd]**2)
mflat._mask[select_nonstd] = mflat._mask[select_nonstd] & hflat._mask[select_nonstd]

# get exposed standard fiber ID
default_fiber_id = f"P1-{i+1}"
fiber_id = mflat._header.get("CALIBFIB", default_fiber_id) or default_fiber_id
# put std fibers in the right position
fiber_id = f"P1-{i+1}"
idx = np.where(fibermap["orig_ifulabel"].value == fiber_id)
mflat._data[idx] = hflat._data[idx]
mflat._error[idx] = hflat._error[idx]
Expand Down

0 comments on commit dae2bd6

Please sign in to comment.