Skip to content

Commit

Permalink
Merge pull request #116 from simonsobs/koopman/issue-95
Browse files Browse the repository at this point in the history
Stop SMuRF streams before stopping telescope scan
  • Loading branch information
BrianJKoopman authored Dec 12, 2023
2 parents 504fbb7 + 50e0b91 commit 0f48f3f
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/sorunlib/seq.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,12 @@ def scan(description, stop_time, width, az_drift=0, tag=None, subtype=None):
# Wait until stop time
run.commands.wait_until(stop_time)
finally:
# Stop motion
print("Stopping scan.")
# Stop SMuRF streams
run.smurf.stream('off')

# Stop motion
acu.generate_scan.stop()
resp = acu.generate_scan.wait(timeout=OP_TIMEOUT)
check_response(acu, resp)

# Stop SMuRF streams
run.smurf.stream('off')
print("Scan finished.")

0 comments on commit 0f48f3f

Please sign in to comment.