def _parse_parameter_file(self):
    handle = h5py.File(self.parameter_filename, mode='r')
    hvals = {}
    hvals.update(((str(k), v) for (k, v) in handle['/Header'].attrs.items()))
    hvals['NumFiles'] = hvals['NumFilesPerSnapshot']
    hvals['Massarr'] = hvals['MassTable']
    self.dimensionality = 3
    self.refine_by = 2
    self.current_time = self.quan(hvals['Time_GYR'], 'Gyr')
    self.domain_left_edge = np.zeros(3, 'float64')
    self.domain_right_edge = (np.ones(3, 'float64') * hvals['BoxSize'])
    self.domain_dimensions = np.ones(3, 'int32')
    self.cosmological_simulation = 1
    self.periodicity = (True, True, True)
    self.current_redshift = hvals['Redshift']
    self.omega_lambda = hvals['OmegaLambda']
    self.omega_matter = hvals['Omega0']
    self.hubble_constant = hvals['HubbleParam']
    self.parameters = hvals
    prefix = os.path.abspath(os.path.join(os.path.dirname(self.parameter_filename), os.path.basename(self.parameter_filename).split('.', 1)[0]))
    suffix = self.parameter_filename.rsplit('.', 1)[(- 1)]
    self.filename_template = f'{prefix}.%(num)i.{suffix}'
    self.file_count = len(glob.glob(((prefix + '*') + self._suffix)))
    if (self.file_count == 0):
        raise YTException(message='No data files found.', ds=self)
    self.particle_types = ('FOF', 'SUBFIND')
    self.particle_types_raw = ('FOF', 'SUBFIND')
    self._unit_base = {}
    self._unit_base.update(((str(k), v) for (k, v) in handle['/Units'].attrs.items()))
    handle.close()
def _parse_parameter_file(self):
    handle = h5py.File(self.parameter_filename, mode='r')
    hvals = {}
    hvals.update(((str(k), v) for (k, v) in handle['/Header'].attrs.items()))
    hvals['NumFiles'] = hvals['NumFilesPerSnapshot']
    hvals['Massarr'] = hvals['MassTable']
    self.dimensionality = 3
    self.refine_by = 2
    self.current_time = self.quan(hvals['Time_GYR'], 'Gyr')
    self.domain_left_edge = np.zeros(3, 'float64')
    self.domain_right_edge = (np.ones(3, 'float64') * hvals['BoxSize'])
    self.domain_dimensions = np.ones(3, 'int32')
    self.cosmological_simulation = 1
    self.periodicity = (True, True, True)
    self.current_redshift = hvals['Redshift']
    self.omega_lambda = hvals['OmegaLambda']
    self.omega_matter = hvals['Omega0']
    self.hubble_constant = hvals['HubbleParam']
    self.parameters = hvals
    prefix = os.path.abspath(os.path.join(os.path.dirname(self.parameter_filename), os.path.basename(self.parameter_filename).split('.', 1)[0]))
    suffix = self.parameter_filename.rsplit('.', 1)[(- 1)]
    self.filename_template = f'{prefix}.%(num)i.{suffix}'
    self.file_count = len(glob.glob(((prefix + '*') + self._suffix)))
    if (self.file_count == 0):
        raise YTException(message='No data files found.', ds=self)
    self.particle_types = ('FOF', 'SUBFIND')
    self.particle_types_raw = ('FOF', 'SUBFIND')
    self._unit_base = {}
    self._unit_base.update(((str(k), v) for (k, v) in handle['/Units'].attrs.items()))
    handle.close()