esoreader.py
def _read_data_dictionary(self):
        """parses the head of the eso_file, returning the data dictionary.
        the file object eso_file is advanced to the position needed by
        read_data.
        """
        version, timestamp = [s.strip() for s
                              in self.eso_file.readline().split(',')[-2:]]
        dd = DataDictionary(version, timestamp)
        line = self.eso_file.readline().strip()
        while line != 'End of Data Dictionary':
            line, reporting_frequency = self._read_reporting_frequency(line)
            if reporting_frequency:
                fields = [f.strip() for f in line.split(',')]
                if len(fields) >= 4:
                    id, nfields, key, variable = fields[:4]
                else:
                    id, nfields, variable = fields[:3]
                    key = None
                variable, unit = self._read_variable_unit(variable)
                dd.variables[int(id)] = [reporting_frequency, key,
                                         variable, unit]
            else:
                # ignore the lines that aren't report variables
                pass
            line = self.eso_file.readline().strip()
        dd.ids = set(dd.variables.keys())
        return dd
parses the head of the eso_file, returning the data dictionary.
        the file object eso_file is advanced to the position needed by
        read_data.
        
parses the head of the eso_file, returning the data dictionary.
the file object eso_file is advanced to the position needed by
read_data.
parses the head of the eso_file returning the data dictionary . the file object eso_file is advanced to the position needed by read_data .
def _read_data_dictionary(self):
        version, timestamp = [s.strip() for s
                              in self.eso_file.readline().split(',')[-2:]]
        dd = DataDictionary(version, timestamp)
        line = self.eso_file.readline().strip()
        while line != 'End of Data Dictionary':
            line, reporting_frequency = self._read_reporting_frequency(line)
            if reporting_frequency:
                fields = [f.strip() for f in line.split(',')]
                if len(fields) >= 4:
                    id, nfields, key, variable = fields[:4]
                else:
                    id, nfields, variable = fields[:3]
                    key = None
                variable, unit = self._read_variable_unit(variable)
                dd.variables[int(id)] = [reporting_frequency, key,
                                         variable, unit]
            else:
                pass
            line = self.eso_file.readline().strip()
        dd.ids = set(dd.variables.keys())
        return dd
def _read_data_dictionary ( self ) : version , timestamp = [ s . strip ( ) for s in self . eso_file . readline ( ) . split ( ',' ) [ - 2 : ] ] dd = DataDictionary ( version , timestamp ) line = self . eso_file . readline ( ) . strip ( ) while line != 'End of Data Dictionary' : line , reporting_frequency = self . _read_reporting_frequency ( line ) if reporting_frequency : fields = [ f . strip ( ) for f in line . split ( ',' ) ] if len ( fields ) >= 4 : id , nfields , key , variable = fields [ : 4 ] else : id , nfields , variable = fields [ : 3 ] key = None variable , unit = self . _read_variable_unit ( variable ) dd . variables [ int ( id ) ] = [ reporting_frequency , key , variable , unit ] else : pass line = self . eso_file . readline ( ) . strip ( ) dd . ids = set ( dd . variables . keys ( ) ) return dd
parses the head of the eso_file, returning the data dictionary.
parses the head of the eso_file returning the data dictionary .
"""parses the head of the eso_file, returning the data dictionary.
        the file object eso_file is advanced to the position needed by
        read_data.
        """ # ignore the lines that aren't report variables

self