Skip to content

Psrdada

[source]

DadaManager

your.formats.dada.DadaManager(size, key=56026, 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.

[source]

setup

DadaManager.setup()

Kill any previous buffers with the same key. Set up the dada buffers and connect to a writer.


[source]

dump_header

DadaManager.dump_header(header)

Set the psrdada header


[source]

dump_data

DadaManager.dump_data(data_input)

Dump the data to the buffer

Args:

data_input (numpy.ndarray): Numpy array of the data.

[source]

mark_filled

DadaManager.mark_filled()

Mark that data is filled in the buffer page.


[source]

eod

DadaManager.eod()

Mark the end of data.


[source]

teardown

DadaManager.teardown()

Disconnect the writer and tear down the buffers.