pynbody.snapshot.swift.SwiftMultiFileManager#

class pynbody.snapshot.swift.SwiftMultiFileManager(filename, mode='r', take_swift_cells=None, take_region=None, **kwargs)[source]#

Bases: _GadgetHdfMultiFileManager

Methods

get_take_parameter(families_ordered, ...)

Return the array of particle indexes to read

read(requests)

Read requests (see pynbody.util.hdf_bulk_read.ReadRequest) of datasets in these files.

get_file0_root

get_header_attrs

get_parameter_attrs

get_unit_attrs

is_virtual

iter_particle_groups_with_name

iterroot

max_buf

reopen_in_mode

__init__(filename, mode='r', take_swift_cells=None, take_region=None, **kwargs)[source]#
get_take_parameter(families_ordered, family_to_group_map)[source]#

Return the array of particle indexes to read

only_one_file_of_a_set = False#

True if we have been pointed at a single file which declares itself to be one of a multi-file set

read(requests) → ReadStrategy#

Read requests (see pynbody.util.hdf_bulk_read.ReadRequest) of datasets in these files.

Where it is safe, the data are read directly rather than through h5py, which serialises all reads, and perhaps in several threads; see pynbody.util.hdf_bulk_read.BulkReader.read().