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.
- spectre.IO.Exporter._Pybindings.interpolate_to_points(volume_files_or_glob: list[str] | str, subfile_name: str, observation_id: int, tensor_components: list[str], target_points: list[list[float]], extrapolate_into_excisions: bool = False, num_threads: int | None = None) list[list[float]] ¶
Modules