Skip to content

Commit

Permalink
Merge branch 'main' into albireox/abort-exposures
Browse files Browse the repository at this point in the history
  • Loading branch information
albireox committed May 29, 2024
2 parents 12997c1 + 603f583 commit b2520de
Show file tree
Hide file tree
Showing 6 changed files with 86 additions and 64 deletions.
10 changes: 9 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
# Changelog

## Next version
## 1.2.1 - May 28th, 2024

### 🔧 Fixed

* Fix an issue with the new auto-pilot loading a new design during an exposure when a fully loaded one was available.
* Correctly set the observed configuration if the a new one has been loaded.


## 1.2.0 - May 26th, 2024

### 🚀 New

Expand Down
112 changes: 56 additions & 56 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "sdss-hal"
version = "1.2.0a0"
version = "1.2.2a0"
description = "High-level observing tool for SDSS-V (replaces SOP)"
authors = ["José Sánchez-Gallego <[email protected]>"]
license = "BSD-3-Clause"
Expand Down
2 changes: 1 addition & 1 deletion src/hal/actor/commands/auto_pilot.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ async def auto_pilot(
break

await asyncio.sleep(0.1)

break
if macro.cancelled:
# Cancelled macros return result=True
break
Expand Down
9 changes: 6 additions & 3 deletions src/hal/macros/auto_pilot.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,13 @@ async def prepare(self):
if self.system_state.boss_exposure_state is None:
raise MacroError("Cannot determine BOSS exposure state.")

time_remaining = self.system_state.exposure_time_remaining
if time_remaining > 0:
# Is there a configuration loaded and has it been observed?
configuration = self.helpers.jaeger.configuration
observed = configuration and configuration.observed

if self.system_state.exposure_time_remaining > 0:
# We are exposing.
if self.helpers.jaeger.preloaded:
if self.helpers.jaeger.preloaded or not observed:
# There is already a preloaded configuration. Just wait
# until the exposure is done.
self._auto_pilot_message("Waiting for exposure before loading design")
Expand Down
Loading

0 comments on commit b2520de

Please sign in to comment.