def read_header(self):
    if self.is_failed:
        self.header = None
        return
    self.header_file = os.path.join(self.results_dir, self.utc, 'FB', self.conf.header_file)
    if (not os.path.exists(self.header_file)):
        raise Exception('Header file({0}) does not exist'.format(self.header_file))
    with open(self.header_file) as h:
        lines = h.readlines()
    hdr_tmp = {}
    for line in lines:
        key = line.split()[0].strip()
        val = line.split()[1].strip()
        cval = self.check_type(val)
        if key.startswith('FURBY'):
            cval = str(val)
        hdr_tmp[key] = cval
    keys = hdr_tmp.keys()
    values = hdr_tmp.values()
    tmp = namedtuple('HEADER', keys)
    self.header = tmp(*values)
    self.tres = (self.header.TSAMP * 1e-06)
    return self.header
def read_header(self):
    if self.is_failed:
        self.header = None
        return
    self.header_file = os.path.join(self.results_dir, self.utc, 'FB', self.conf.header_file)
    if (not os.path.exists(self.header_file)):
        raise Exception('Header file({0}) does not exist'.format(self.header_file))
    with open(self.header_file) as h:
        lines = h.readlines()
    hdr_tmp = {}
    for line in lines:
        key = line.split()[0].strip()
        val = line.split()[1].strip()
        cval = self.check_type(val)
        if key.startswith('FURBY'):
            cval = str(val)
        hdr_tmp[key] = cval
    keys = hdr_tmp.keys()
    values = hdr_tmp.values()
    tmp = namedtuple('HEADER', keys)
    self.header = tmp(*values)
    self.tres = (self.header.TSAMP * 1e-06)
    return self.header