Psrdada
DadaManager
your.formats.dada.DadaManager(size, key="0xdada", n_readers=1)
A manager class for psrdada
writer.
Args:
size (int): size of each buffer (in bytes)
key (hex): hexadecimal dada key
n_readers (int): Number of dada readers.
setup
DadaManager.setup()
Kill any previous buffers with the same key. Set up the dada buffers and connect to a writer.
dump_header
DadaManager.dump_header(header)
Set the psrdada header
dump_data
DadaManager.dump_data(data_input)
Dump the data to the buffer
Args:
data_input (numpy.ndarray): Numpy array of the data.
mark_filled
DadaManager.mark_filled()
Mark that data is filled in the buffer page.
eod
DadaManager.eod()
Mark the end of data.
teardown
DadaManager.teardown()
Disconnect the writer and tear down the buffers.