spectre.IO.Exporter¶
Functions
|
Wrapper around 'interpolate_to_points' for tensors. |
- spectre.IO.Exporter.interpolate_tensors_to_points(*args, tensor_names: Sequence[str], tensor_types: Sequence[Type], **kwargs)¶
Wrapper around ‘interpolate_to_points’ for tensors.
Interpolates volume data to points by calling ‘interpolate_to_points’. However, instead of passing a list of tensor components (like ‘SpatialMetric_xx’) you can pass a list of tensor names (like ‘SpatialMetric’) and their corresponding types (like ‘tnsr.ii[DataVector, 3]’) and this function will assemble the tensors and return them as a list.
Note: It would be nice to move this function into C++, but that’s not trivial because the tensor types are not known at compile time. This can be revisited when we have Python support for Variables.
- class spectre.IO.Exporter._Pybindings.PointwiseInterpolator1DGrid¶
- domain(self: spectre.IO.Exporter._Pybindings.PointwiseInterpolator1DGrid) spectre.Domain._Pybindings.Domain1D¶
- functions_of_time(self: spectre.IO.Exporter._Pybindings.PointwiseInterpolator1DGrid) dict[str, spectre.Domain._Pybindings.FunctionOfTime]¶
- interpolate_to_point(self: spectre.IO.Exporter._Pybindings.PointwiseInterpolator1DGrid, target_point: spectre.DataStructures.Tensor._Pybindings.TensorID1Grid) list[float]¶
- obs_id(self: spectre.IO.Exporter._Pybindings.PointwiseInterpolator1DGrid) int¶
- time(self: spectre.IO.Exporter._Pybindings.PointwiseInterpolator1DGrid) float¶
- class spectre.IO.Exporter._Pybindings.PointwiseInterpolator1DInertial¶
- domain(self: spectre.IO.Exporter._Pybindings.PointwiseInterpolator1DInertial) spectre.Domain._Pybindings.Domain1D¶
- functions_of_time(self: spectre.IO.Exporter._Pybindings.PointwiseInterpolator1DInertial) dict[str, spectre.Domain._Pybindings.FunctionOfTime]¶
- interpolate_to_point(self: spectre.IO.Exporter._Pybindings.PointwiseInterpolator1DInertial, target_point: spectre.DataStructures.Tensor._Pybindings.TensorID1Inertial) list[float]¶
- obs_id(self: spectre.IO.Exporter._Pybindings.PointwiseInterpolator1DInertial) int¶
- time(self: spectre.IO.Exporter._Pybindings.PointwiseInterpolator1DInertial) float¶
- class spectre.IO.Exporter._Pybindings.PointwiseInterpolator2DGrid¶
- domain(self: spectre.IO.Exporter._Pybindings.PointwiseInterpolator2DGrid) spectre.Domain._Pybindings.Domain2D¶
- functions_of_time(self: spectre.IO.Exporter._Pybindings.PointwiseInterpolator2DGrid) dict[str, spectre.Domain._Pybindings.FunctionOfTime]¶
- interpolate_to_point(self: spectre.IO.Exporter._Pybindings.PointwiseInterpolator2DGrid, target_point: spectre.DataStructures.Tensor._Pybindings.TensorID2Grid) list[float]¶
- obs_id(self: spectre.IO.Exporter._Pybindings.PointwiseInterpolator2DGrid) int¶
- time(self: spectre.IO.Exporter._Pybindings.PointwiseInterpolator2DGrid) float¶
- class spectre.IO.Exporter._Pybindings.PointwiseInterpolator2DInertial¶
- domain(self: spectre.IO.Exporter._Pybindings.PointwiseInterpolator2DInertial) spectre.Domain._Pybindings.Domain2D¶
- functions_of_time(self: spectre.IO.Exporter._Pybindings.PointwiseInterpolator2DInertial) dict[str, spectre.Domain._Pybindings.FunctionOfTime]¶
- interpolate_to_point(self: spectre.IO.Exporter._Pybindings.PointwiseInterpolator2DInertial, target_point: spectre.DataStructures.Tensor._Pybindings.TensorID2Inertial) list[float]¶
- obs_id(self: spectre.IO.Exporter._Pybindings.PointwiseInterpolator2DInertial) int¶
- time(self: spectre.IO.Exporter._Pybindings.PointwiseInterpolator2DInertial) float¶
- class spectre.IO.Exporter._Pybindings.PointwiseInterpolator3DGrid¶
- domain(self: spectre.IO.Exporter._Pybindings.PointwiseInterpolator3DGrid) spectre.Domain._Pybindings.Domain3D¶
- functions_of_time(self: spectre.IO.Exporter._Pybindings.PointwiseInterpolator3DGrid) dict[str, spectre.Domain._Pybindings.FunctionOfTime]¶
- interpolate_to_point(self: spectre.IO.Exporter._Pybindings.PointwiseInterpolator3DGrid, target_point: spectre.DataStructures.Tensor._Pybindings.TensorID3Grid) list[float]¶
- obs_id(self: spectre.IO.Exporter._Pybindings.PointwiseInterpolator3DGrid) int¶
- time(self: spectre.IO.Exporter._Pybindings.PointwiseInterpolator3DGrid) float¶
- class spectre.IO.Exporter._Pybindings.PointwiseInterpolator3DInertial¶
- domain(self: spectre.IO.Exporter._Pybindings.PointwiseInterpolator3DInertial) spectre.Domain._Pybindings.Domain3D¶
- functions_of_time(self: spectre.IO.Exporter._Pybindings.PointwiseInterpolator3DInertial) dict[str, spectre.Domain._Pybindings.FunctionOfTime]¶
- interpolate_to_point(self: spectre.IO.Exporter._Pybindings.PointwiseInterpolator3DInertial, target_point: spectre.DataStructures.Tensor._Pybindings.TensorID3Inertial) list[float]¶
- obs_id(self: spectre.IO.Exporter._Pybindings.PointwiseInterpolator3DInertial) int¶
- time(self: spectre.IO.Exporter._Pybindings.PointwiseInterpolator3DInertial) float¶
- class spectre.IO.Exporter._Pybindings.SpacetimeInterpolator1D¶
- interpolate_to_point(self: spectre.IO.Exporter._Pybindings.SpacetimeInterpolator1D, target_point: spectre.DataStructures.Tensor._Pybindings.TensorID1Inertial, time: float) list[float]¶
- load_time_bounds(self: spectre.IO.Exporter._Pybindings.SpacetimeInterpolator1D, time_bounds: Annotated[list[float], FixedSize(2)]) None¶
- max_time_bounds(self: spectre.IO.Exporter._Pybindings.SpacetimeInterpolator1D) Annotated[list[float], FixedSize(2)]¶
- time_bounds(self: spectre.IO.Exporter._Pybindings.SpacetimeInterpolator1D) Annotated[list[float], FixedSize(2)]¶
- class spectre.IO.Exporter._Pybindings.SpacetimeInterpolator2D¶
- interpolate_to_point(self: spectre.IO.Exporter._Pybindings.SpacetimeInterpolator2D, target_point: spectre.DataStructures.Tensor._Pybindings.TensorID2Inertial, time: float) list[float]¶
- load_time_bounds(self: spectre.IO.Exporter._Pybindings.SpacetimeInterpolator2D, time_bounds: Annotated[list[float], FixedSize(2)]) None¶
- max_time_bounds(self: spectre.IO.Exporter._Pybindings.SpacetimeInterpolator2D) Annotated[list[float], FixedSize(2)]¶
- time_bounds(self: spectre.IO.Exporter._Pybindings.SpacetimeInterpolator2D) Annotated[list[float], FixedSize(2)]¶
- class spectre.IO.Exporter._Pybindings.SpacetimeInterpolator3D¶
- interpolate_to_point(self: spectre.IO.Exporter._Pybindings.SpacetimeInterpolator3D, target_point: spectre.DataStructures.Tensor._Pybindings.TensorID3Inertial, time: float) list[float]¶
- load_time_bounds(self: spectre.IO.Exporter._Pybindings.SpacetimeInterpolator3D, time_bounds: Annotated[list[float], FixedSize(2)]) None¶
- max_time_bounds(self: spectre.IO.Exporter._Pybindings.SpacetimeInterpolator3D) Annotated[list[float], FixedSize(2)]¶
- time_bounds(self: spectre.IO.Exporter._Pybindings.SpacetimeInterpolator3D) Annotated[list[float], FixedSize(2)]¶
- spectre.IO.Exporter._Pybindings.interpolate_to_points(*args, **kwargs)¶
Overloaded function.
interpolate_to_points(volume_files_or_glob: Union[list[str], str], subfile_name: str, observation: Union[spectre.IO.Exporter._Pybindings.ObservationId, spectre.IO.Exporter._Pybindings.ObservationStep, float], tensor_components: list[str], target_points: spectre.DataStructures.Tensor._Pybindings.TensorIDV1Grid, extrapolate_into_excisions: bool = False, error_on_missing_points: bool = False, num_threads: Optional[int] = None) -> list[spectre.DataStructures._Pybindings.DataVector]
interpolate_to_points(volume_files_or_glob: Union[list[str], str], subfile_name: str, observation: Union[spectre.IO.Exporter._Pybindings.ObservationId, spectre.IO.Exporter._Pybindings.ObservationStep, float], tensor_components: list[str], target_points: spectre.DataStructures.Tensor._Pybindings.TensorIDV2Grid, extrapolate_into_excisions: bool = False, error_on_missing_points: bool = False, num_threads: Optional[int] = None) -> list[spectre.DataStructures._Pybindings.DataVector]
interpolate_to_points(volume_files_or_glob: Union[list[str], str], subfile_name: str, observation: Union[spectre.IO.Exporter._Pybindings.ObservationId, spectre.IO.Exporter._Pybindings.ObservationStep, float], tensor_components: list[str], target_points: spectre.DataStructures.Tensor._Pybindings.TensorIDV3Grid, extrapolate_into_excisions: bool = False, error_on_missing_points: bool = False, num_threads: Optional[int] = None) -> list[spectre.DataStructures._Pybindings.DataVector]
interpolate_to_points(volume_files_or_glob: Union[list[str], str], subfile_name: str, observation: Union[spectre.IO.Exporter._Pybindings.ObservationId, spectre.IO.Exporter._Pybindings.ObservationStep, float], tensor_components: list[str], target_points: spectre.DataStructures.Tensor._Pybindings.TensorIDV1Inertial, extrapolate_into_excisions: bool = False, error_on_missing_points: bool = False, num_threads: Optional[int] = None) -> list[spectre.DataStructures._Pybindings.DataVector]
interpolate_to_points(volume_files_or_glob: Union[list[str], str], subfile_name: str, observation: Union[spectre.IO.Exporter._Pybindings.ObservationId, spectre.IO.Exporter._Pybindings.ObservationStep, float], tensor_components: list[str], target_points: spectre.DataStructures.Tensor._Pybindings.TensorIDV2Inertial, extrapolate_into_excisions: bool = False, error_on_missing_points: bool = False, num_threads: Optional[int] = None) -> list[spectre.DataStructures._Pybindings.DataVector]
interpolate_to_points(volume_files_or_glob: Union[list[str], str], subfile_name: str, observation: Union[spectre.IO.Exporter._Pybindings.ObservationId, spectre.IO.Exporter._Pybindings.ObservationStep, float], tensor_components: list[str], target_points: spectre.DataStructures.Tensor._Pybindings.TensorIDV3Inertial, extrapolate_into_excisions: bool = False, error_on_missing_points: bool = False, num_threads: Optional[int] = None) -> list[spectre.DataStructures._Pybindings.DataVector]
Modules