Skip to content

Commit

Permalink
Merge pull request #69 from simonsobs/koopman/scan-tag
Browse files Browse the repository at this point in the history
Pass tag from scan command through to stream
  • Loading branch information
BrianJKoopman authored Jul 6, 2023
2 parents ca96950 + 782acb3 commit aaed975
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/sorunlib/seq.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
OP_TIMEOUT = 60


def scan(description, stop_time, width):
def scan(description, stop_time, width, tag=None):
"""Run a constant elevation scan, collecting detector data.
Args:
Expand All @@ -14,10 +14,12 @@ def scan(description, stop_time, width):
"2022-06-21T15:58:00"
width (float): Scan width in azimuth. The scan will start at the
current position and move in the positive azimuth direction.
tag (str, optional): Tag or comma-separated listed of tags to attach to
the operation. Passed through to the smurf stream command.
"""
# Enable SMuRF streams
run.smurf.stream('on')
run.smurf.stream('on', tag=tag)

try:
# Grab current telescope position
Expand Down

0 comments on commit aaed975

Please sign in to comment.