Skip to content

Commit

Permalink
resetting guess thermal shift if too large
Browse files Browse the repository at this point in the history
  • Loading branch information
ajmejia committed Dec 15, 2024
1 parent 5b5c267 commit e22c650
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/lvmdrp/core/image.py
Original file line number Diff line number Diff line change
Expand Up @@ -753,7 +753,8 @@ def measure_fiber_shifts(self, ref_image, trace_cent, columns=[500, 1000, 1500,
guess_shift = _align_fiber_blocks(s1, s2, axs=None)

if numpy.abs(guess_shift) > 6:
log.warning(f"measuring guess fiber thermal shift too large {guess_shift = } pixels")
log.warning(f"measuring guess fiber thermal shift too large {guess_shift = } pixels, setting guess shift to zero")
guess_shift = 0
else:
log.info(f"measured guess fiber thermal shift {guess_shift = } pixels")

Expand Down

0 comments on commit e22c650

Please sign in to comment.