def __init__(self, config, frame_shape, log=Logger(__name__)):
"""Creates and sets up SPEAD streams.
The configuration of streams is passed in via the ``config`` arguent.
The dimensions of the visibility data must be specified in order
to initialise the payload. This is a tuple of dimensions defined in the
ICD as:
Args:
config (dict): Dictionary of settings (see above).
frame_shape (tuple): Dimensions of the payload visibility data.
log (logging.Logger): Python logging object.
"""
self._config = config
self._frame_shape = frame_shape
self._log = log
self._heap_descriptor = self._init_heap_descriptor()
self._streams = list()
self._heap_counter = 0
self._send_timer = 0
self._heap_size = self._get_heap_size()
self._create_streams()
self._payload = self._init_payload()
heap_streamer.py 文件源码
python
阅读 31
收藏 0
点赞 0
评论 0
评论列表
文章目录