spectre.IO.H5

class spectre.IO.H5._Pybindings.ElementVolumeData
property basis
property element_name
property extents
property quadrature
property tensor_components
class spectre.IO.H5._Pybindings.H5Cce
append(self: spectre.IO.H5._Pybindings.H5Cce, data: collections.abc.Mapping[str, collections.abc.Sequence[SupportsFloat | SupportsIndex]]) None
get_data(*args, **kwargs)

Overloaded function.

  1. get_data(self: spectre.IO.H5._Pybindings.H5Cce) -> dict[str, spectre.DataStructures._Pybindings.Matrix]

  2. get_data(self: spectre.IO.H5._Pybindings.H5Cce, bondi_variable_name: str) -> spectre.DataStructures._Pybindings.Matrix

get_data_subset(*args, **kwargs)

Overloaded function.

  1. get_data_subset(self: spectre.IO.H5._Pybindings.H5Cce, ell: collections.abc.Sequence[typing.SupportsInt | typing.SupportsIndex], first_row: typing.SupportsInt | typing.SupportsIndex = 0, num_rows: typing.SupportsInt | typing.SupportsIndex = 1) -> dict[str, spectre.DataStructures._Pybindings.Matrix]

  2. get_data_subset(self: spectre.IO.H5._Pybindings.H5Cce, bondi_variable_name: str, ell: collections.abc.Sequence[typing.SupportsInt | typing.SupportsIndex], first_row: typing.SupportsInt | typing.SupportsIndex = 0, num_rows: typing.SupportsInt | typing.SupportsIndex = 1) -> spectre.DataStructures._Pybindings.Matrix

get_dimensions(self: spectre.IO.H5._Pybindings.H5Cce, arg0: str) Annotated[list[int], 'FixedSize(2)']
get_header(self: spectre.IO.H5._Pybindings.H5Cce) str
get_legend(self: spectre.IO.H5._Pybindings.H5Cce) list[str]
get_version(self: spectre.IO.H5._Pybindings.H5Cce) int
class spectre.IO.H5._Pybindings.H5Dat
append(*args, **kwargs)

Overloaded function.

  1. append(self: spectre.IO.H5._Pybindings.H5Dat, data: collections.abc.Sequence[typing.SupportsFloat | typing.SupportsIndex]) -> None

  2. append(self: spectre.IO.H5._Pybindings.H5Dat, data: spectre.DataStructures._Pybindings.Matrix) -> None

  3. append(self: spectre.IO.H5._Pybindings.H5Dat, data: collections.abc.Sequence[collections.abc.Sequence[typing.SupportsFloat | typing.SupportsIndex]]) -> None

get_data(self: spectre.IO.H5._Pybindings.H5Dat) spectre.DataStructures._Pybindings.Matrix
get_data_subset(self: spectre.IO.H5._Pybindings.H5Dat, columns: collections.abc.Sequence[SupportsInt | SupportsIndex], first_row: SupportsInt | SupportsIndex = 0, num_rows: SupportsInt | SupportsIndex = 1) spectre.DataStructures._Pybindings.Matrix
get_dimensions(self: spectre.IO.H5._Pybindings.H5Dat) Annotated[list[int], 'FixedSize(2)']
get_header(self: spectre.IO.H5._Pybindings.H5Dat) str
get_legend(self: spectre.IO.H5._Pybindings.H5Dat) list[str]
get_version(self: spectre.IO.H5._Pybindings.H5Dat) int
spectre.IO.H5._Pybindings.H5File(file_name: os.PathLike | str | bytes, mode: str = 'r') object

Open an H5File object

file_name: the name of the H5File to open mode: mode to open the file. Available modes are ‘r’, ‘r+’, ‘w-’, ‘x’, and ‘a’. For details see https://docs.h5py.org/en/stable/high/file.html

class spectre.IO.H5._Pybindings.H5Vol
extend_connectivity_data_1d(self: spectre.IO.H5._Pybindings.H5Vol, observation_ids: collections.abc.Sequence[SupportsInt | SupportsIndex]) None
extend_connectivity_data_2d(self: spectre.IO.H5._Pybindings.H5Vol, observation_ids: collections.abc.Sequence[SupportsInt | SupportsIndex]) None
extend_connectivity_data_3d(self: spectre.IO.H5._Pybindings.H5Vol, observation_ids: collections.abc.Sequence[SupportsInt | SupportsIndex]) None
static extension() str
find_observation_id(self: spectre.IO.H5._Pybindings.H5Vol, observation_value: SupportsFloat | SupportsIndex, observation_value_epsilon: SupportsFloat | SupportsIndex | None = None) int
get_bases(self: spectre.IO.H5._Pybindings.H5Vol, observation_id: SupportsInt | SupportsIndex) list[list[spectre.Spectral._Pybindings.Basis]]
get_data_by_element(self: spectre.IO.H5._Pybindings.H5Vol, start_observation_value: SupportsFloat | SupportsIndex | None, end_observation_value: SupportsFloat | SupportsIndex | None, components_to_retrieve: collections.abc.Sequence[str] | None = None) list[tuple[int, float, list[ElementVolumeData]]]
get_dimension(self: spectre.IO.H5._Pybindings.H5Vol) int
get_domain(self: spectre.IO.H5._Pybindings.H5Vol) list[str] | None
get_extents(self: spectre.IO.H5._Pybindings.H5Vol, observation_id: SupportsInt | SupportsIndex) list[list[int]]
get_functions_of_time(self: spectre.IO.H5._Pybindings.H5Vol, observation_id: SupportsInt | SupportsIndex) list[str] | None
get_global_functions_of_time(self: spectre.IO.H5._Pybindings.H5Vol) list[str] | None
get_grid_names(self: spectre.IO.H5._Pybindings.H5Vol, observation_id: SupportsInt | SupportsIndex) list[str]
get_header(self: spectre.IO.H5._Pybindings.H5Vol) str
get_observation_value(self: spectre.IO.H5._Pybindings.H5Vol, observation_id: SupportsInt | SupportsIndex) float
get_quadratures(self: spectre.IO.H5._Pybindings.H5Vol, observation_id: SupportsInt | SupportsIndex) list[list[spectre.Spectral._Pybindings.Quadrature]]
get_tensor_component(self: spectre.IO.H5._Pybindings.H5Vol, observation_id: SupportsInt | SupportsIndex, tensor_component: str) TensorComponent
get_version(self: spectre.IO.H5._Pybindings.H5Vol) int
list_observation_ids(self: spectre.IO.H5._Pybindings.H5Vol) list[int]
list_tensor_components(self: spectre.IO.H5._Pybindings.H5Vol, observation_id: SupportsInt | SupportsIndex) list[str]
write_tensor_component(self: spectre.IO.H5._Pybindings.H5Vol, observation_id: SupportsInt | SupportsIndex, component_name: str, contiguous_tensor_data: spectre.DataStructures._Pybindings.DataVector, overwrite_existing: bool = False) None
write_volume_data(self: spectre.IO.H5._Pybindings.H5Vol, observation_id: SupportsInt | SupportsIndex, observation_value: SupportsFloat | SupportsIndex, elements: collections.abc.Sequence[ElementVolumeData], serialized_domain: collections.abc.Sequence[str] | None = None, serialized_observation_functions_of_time: collections.abc.Sequence[str] | None = None, serialized_global_functions_of_time: collections.abc.Sequence[str] | None = None) None
class spectre.IO.H5._Pybindings.TensorComponent
property data
property name
spectre.IO.H5._Pybindings.combine_h5_vol(file_names: collections.abc.Sequence[str], subfile_name: str, output: str, start-time: typing.SupportsFloat | typing.SupportsIndex | None, stop-time: typing.SupportsFloat | typing.SupportsIndex | None, blocks_to_combine: collections.abc.Sequence[str] | None, check_src: bool) None
spectre.IO.H5._Pybindings.offset_and_length_for_grid(grid_name: str, all_grid_names: collections.abc.Sequence[str], all_extents: collections.abc.Sequence[collections.abc.Sequence[SupportsInt | SupportsIndex]]) tuple[int, int]

Modules