artist.field.tower_target_areas

Attributes

log

A logger for the tower target areas.

Classes

TowerTargetAreas

Initialize the target areas.

Module Contents

artist.field.tower_target_areas.log

A logger for the tower target areas.

class artist.field.tower_target_areas.TowerTargetAreas(names: list[str], centers: torch.Tensor, normals: torch.Tensor)

Initialize the target areas.

Parameters

nameslist[str]

The name of each target area.

centerstorch.Tensor

Center point coordinate of each target area. Shape is [number_of_target_areas, 4].

normalstorch.Tensor

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

names
centers
normals
number_of_target_areas
classmethod from_hdf5(config_file: h5py.File, device: torch.device | None = None) Self
Abstractmethod:

Load all target areas from an HDF5 file.

Parameters

config_fileh5py.File

The 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.

Raises

NotImplementedError

This abstract method must be overridden.