Skip to content

Commit

Permalink
Correct pairs to minimize filter changes
Browse files Browse the repository at this point in the history
  • Loading branch information
yoachim committed Jan 21, 2025
1 parent abe820a commit d132934
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion rubin_scheduler/scheduler/detailers/detailer.py
Original file line number Diff line number Diff line change
Expand Up @@ -582,7 +582,13 @@ def __call__(self, observation_array, conditions):
observation_array["scheduler_note"] = np.char.add(
observation_array["scheduler_note"], ", %s" % tags[1]
)
result = np.concatenate([paired, observation_array])

# Try to avoid extra filter changes and have "a" tag
# come first.
if conditions.current_band == self.bandname:
result = np.concatenate([paired, observation_array])
else:
result = np.concatenate([observation_array, paired])

return result

Expand Down

0 comments on commit d132934

Please sign in to comment.