artist.field.tower_target_areas_cylindrical

Attributes

log

A logger for the cylindrical tower target areas.

Classes

TowerTargetAreasCylindrical

Initialize the cylindrical target areas.

Module Contents

artist.field.tower_target_areas_cylindrical.log

A logger for the cylindrical tower target areas.

class artist.field.tower_target_areas_cylindrical.TowerTargetAreasCylindrical(names: list[str], centers: torch.Tensor, normals: torch.Tensor, axes: torch.Tensor, radii: torch.Tensor, heights: torch.Tensor, opening_angles: torch.Tensor)

Bases: artist.field.tower_target_areas.TowerTargetAreas

Initialize the cylindrical target areas.

Parameters

nameslist[str]

Name of each cylindrical target area.

centerstorch.Tensor

Center coordinate of each cylindrical target area. The center is defined at the halfway point between top and bottom of the cylinder on the cylinder axis. Shape is [number_of_target_areas, 4].

normalstorch.Tensor

Normal vector of each cylindrical target area. Shape is [number_of_target_areas, 4].

axestorch.Tensor

Cylinder axes of all cylinder target areas. Shape is [number_of_target_areas, 4].

radiitorch.Tensor

Radius of each cylindrical target area. Shape is [number_of_target_areas].

heightstorch.Tensor

Height of each cylindrical target area. Shape is [number_of_target_areas].

opening_anglestorch.Tensor

Opening angle of each cylindrical target area in radians. For full cylinders, this is 2*pi or 360°. Shape is [number_of_target_areas].

radii
heights
axes
opening_angles
classmethod from_hdf5(config_file: h5py.File, device: torch.device | None = None) Self

Load all cylindrical target areas from an HDF5 file.

Parameters

config_fileh5py.File

HDF5 file containing the configuration to be loaded.

devicetorch.device | None

The device on which to perform computations or load tensors and models (default is None). If None, ARTIST will automatically select the most appropriate device (CUDA or CPU) based on availability and OS.

Returns

TowerTargetAreasCylindrical

Target areas loaded from the HDF5 file.