def _detect_output_fields(self):
    self._setup_filenames()
    self._calculate_particle_index_starts()
    self._calculate_file_offset_map()
    dsl = []
    units = {}
    for dom in self.data_files:
        (fl, _units) = self.io._identify_fields(dom)
        units.update(_units)
        dom._calculate_offsets(fl)
        for f in fl:
            if (f not in dsl):
                dsl.append(f)
    self.field_list = dsl
    ds = self.dataset
    ds.particle_types = tuple(set((pt for (pt, ds) in dsl)))
    ds.field_units.update(units)
    ds.particle_types_raw = ds.particle_types
def _detect_output_fields(self):
    self._setup_filenames()
    self._calculate_particle_index_starts()
    self._calculate_file_offset_map()
    dsl = []
    units = {}
    for dom in self.data_files:
        (fl, _units) = self.io._identify_fields(dom)
        units.update(_units)
        dom._calculate_offsets(fl)
        for f in fl:
            if (f not in dsl):
                dsl.append(f)
    self.field_list = dsl
    ds = self.dataset
    ds.particle_types = tuple(set((pt for (pt, ds) in dsl)))
    ds.field_units.update(units)
    ds.particle_types_raw = ds.particle_types