Skip to content

Commit

Permalink
Check current filter before recentering attempt
Browse files Browse the repository at this point in the history
  • Loading branch information
WWGolay committed May 25, 2023
1 parent 4995f54 commit cc3b4f6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion operations/iotalib/telrun_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,8 @@ def run_scans(telrun_file):
centering_result = False
if scan.posx is not None and scan.posy is not None:
logging.info("Refining telescope pointing for this scan...")
if not scan.filter in config_telrun.values.recenter_filters:
if (not observatory.camera.get_filter_names()[observatory.camera.get_active_filter()]
in config_telrun.values.recenter_filters):
filter_index = config_telrun.values.autofocus_filter_index
logging.info("Switching to filter %s for recentering adjustment", filter_index)
observatory.set_filter_and_offset_focuser(filter_index)
Expand Down

0 comments on commit cc3b4f6

Please sign in to comment.