-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SPR1-1418: New beamformer raster scan script #446
base: master
Are you sure you want to change the base?
Conversation
This electronically scans the beamformer across a source in a series of pointings. Each pointing lasts at least long as the delay model update rate, to ensure that it is properly set. This is typically used in conjunction with a custom SPEAD receiver that dumps the beamformer ingest signal display stream (1 Hz dump rate) to a file. It currently only steers beam `0x`, since the signal display only supports `0x` and `0y` anyway. This is the latest version used in the steerable beam tests on 22 September 2021.
session.cbf.req.set_beam_target('wide.tied-array-channelised-voltage.0x', target) | ||
# user_logger.info(' (%s -> %s)', stream.name, target) | ||
time_spent = time.time() - before | ||
time.sleep(duration - time_spent) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since part of the function of the script is to change the phase centre after the beam weights/target has been set, there should be some logging here to report the time_spent setting them.
user_logger.info('performing scan %d (%d pointings)', index, num_pointings) | ||
session.activity('scan') | ||
for x, y in zip(x_steps, y_steps): | ||
mid_pointing = time.time() + pointing_duration / 2. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will be incorrect if the time_spent > pointing duration
session.cbf.req.set_beam_target('wide.tied-array-channelised-voltage.0x', target) | ||
# user_logger.info(' (%s -> %s)', stream.name, target) | ||
time_spent = time.time() - before | ||
time.sleep(duration - time_spent) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the use of this script likely to have time_spent ~ pointing_duration . There would be no actual dwell time in this case
for stream in session.cbf.beamformers: | ||
if not stream.name.endswith('0x'): | ||
continue | ||
session.cbf.req.set_beam_target('wide.tied-array-channelised-voltage.0x', target) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there any checking that this succeeds ? . I suppose the bumble on approach is the best way to deal with failure . Is failure reported as a log ?
This electronically scans the beamformer across a source in a series
of pointings. Each pointing lasts at least long as the delay model
update rate, to ensure that it is properly set. This is typically used
in conjunction with a custom SPEAD receiver that dumps the beamformer
ingest signal display stream (1 Hz dump rate) to a file.
It currently only steers beam
0x
, since the signal display onlysupports
0x
and0y
anyway. This is the latest version used in thesteerable beam tests on 22 September 2021.