Skip to content

Commit

Permalink
Add expose.enabled_instruments option
Browse files Browse the repository at this point in the history
  • Loading branch information
albireox committed Jan 14, 2025
1 parent 49ba7f4 commit 6bc9688
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## Next version

### ✨ Improved

* Add `expose.enabled_instruments` option to the expose macro to allow for enabling/disabling instruments.

### ⚙️ Engineering

* Use `uv` for project management and workflows.
Expand Down
4 changes: 4 additions & 0 deletions src/hal/actor/commands/expose.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,10 @@ async def expose(

selected_stages = cast(list[StageType], stages or flatten(macro.__STAGES__.copy()))

enabled_instuments = macro.config["enabled_instruments"]
apogee = apogee and "apogee" in enabled_instuments
boss = boss and "boss" in enabled_instuments

if boss is False and "expose_boss" in selected_stages:
selected_stages.remove("expose_boss")

Expand Down
1 change: 1 addition & 0 deletions src/hal/etc/hal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ macros:
- guide

expose:
enabled_instruments: ['apogee', 'boss']
boss_exptime: null
apogee_exptime: null
count_apogee: null
Expand Down

0 comments on commit 6bc9688

Please sign in to comment.