Skip to content

Commit

Permalink
Call correct sequence of GortObserver methods in observe_tile()
Browse files Browse the repository at this point in the history
  • Loading branch information
albireox committed Jul 14, 2023
1 parent 26ac364 commit be9de7c
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions src/gort/gort.py
Original file line number Diff line number Diff line change
Expand Up @@ -486,5 +486,18 @@ async def observe_tile(
# Create observer.
observer = GortObserver(self, tile)

# Slew telescopes and move fibsel mask.
await observer.slew()
try:
# Slew telescopes and move fibsel mask.
await observer.slew()

# Start guiding.
await observer.acquire()

# Exposing
exposure = await observer.expose()

finally:
# Finish observation.
await observer.finish_observation()

return exposure

0 comments on commit be9de7c

Please sign in to comment.