def __init__(self, iring, buffer_key, gulp_nframe, space=None, *args, **kwargs): super(PsrDadaSinkBlock, self).__init__(iring, gulp_nframe, *args, **kwargs) self.hdu = Hdu() self.hdu.connect_write(buffer_key) self.keywords_to_add = {} self.keywords_to_sub = [] self.keywords_to_change = {}
def psrdada_read_sequence_iterator(buffer_key): hdu = Hdu() hdu.connect_read(buffer_key) for hdr in hdu.header_block: with hdr: hdr_string = hdr.data.tostring() yield hdu, hdr_string hdu.disconnect()
def __init__(self, iring, buffer_key, gulp_nframe, space=None, *args, **kwargs): super(PsrDadaSinkBlock, self).__init__(iring, gulp_nframe, *args, **kwargs) self.hdu = Hdu() self.hdu.connect_write(buffer_key)