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: dict[str, list[float]]) 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: list[int], first_row: int = 0, num_rows: int = 1) -> dict[str, spectre.DataStructures._Pybindings.Matrix]

  2. get_data_subset(self: spectre.IO.H5._Pybindings.H5Cce, bondi_variable_name: str, ell: list[int], first_row: int = 0, num_rows: int = 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: list[float]) -> None

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

  3. append(self: spectre.IO.H5._Pybindings.H5Dat, data: list[list[float]]) -> None

get_data(self: spectre.IO.H5._Pybindings.H5Dat) spectre.DataStructures._Pybindings.Matrix
get_data_subset(self: spectre.IO.H5._Pybindings.H5Dat, columns: list[int], first_row: int = 0, num_rows: int = 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, 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: list[int]) None
extend_connectivity_data_2d(self: spectre.IO.H5._Pybindings.H5Vol, observation_ids: list[int]) None
extend_connectivity_data_3d(self: spectre.IO.H5._Pybindings.H5Vol, observation_ids: list[int]) None
static extension() str
get_bases(self: spectre.IO.H5._Pybindings.H5Vol, observation_id: int) list[list[spectre.Spectral._Pybindings.Basis]]
get_data_by_element(self: spectre.IO.H5._Pybindings.H5Vol, start_observation_value: float | None, end_observation_value: float | None, components_to_retrieve: list[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, observation_id: int) list[str] | None
get_extents(self: spectre.IO.H5._Pybindings.H5Vol, observation_id: int) list[list[int]]
get_functions_of_time(self: spectre.IO.H5._Pybindings.H5Vol, observation_id: int) list[str] | None
get_grid_names(self: spectre.IO.H5._Pybindings.H5Vol, observation_id: int) list[str]
get_header(self: spectre.IO.H5._Pybindings.H5Vol) str
get_observation_value(self: spectre.IO.H5._Pybindings.H5Vol, observation_id: int) float
get_quadratures(self: spectre.IO.H5._Pybindings.H5Vol, observation_id: int) list[list[spectre.Spectral._Pybindings.Quadrature]]
get_tensor_component(self: spectre.IO.H5._Pybindings.H5Vol, observation_id: int, 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: int) list[str]
write_tensor_component(self: spectre.IO.H5._Pybindings.H5Vol, observation_id: int, 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: int, observation_value: float, elements: list[ElementVolumeData], serialized_domain: list[str] | None = None, serialized_functions_of_time: list[str] | None = None) None
class spectre.IO.H5._Pybindings.TensorComponent
property data
property name
spectre.IO.H5._Pybindings.combine_h5_vol(file_names: list[str], subfile_name: str, output: str, start-time: Optional[float], stop-time: Optional[float], blocks_to_combine: Optional[list[str]], check_src: bool) None
spectre.IO.H5._Pybindings.offset_and_length_for_grid(grid_name: str, all_grid_names: list[str], all_extents: list[list[int]]) tuple[int, int]

Modules