示例#1
0
 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 = {}
示例#2
0
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()
示例#3
0
 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)