artist.scene.light_source_array

Attributes

log

A logger for the light source array.

Classes

LightSourceArray

Initialize the light sources included in the considered scenario.

Module Contents

artist.scene.light_source_array.log

A logger for the light source array.

class artist.scene.light_source_array.LightSourceArray(light_source_list: collections.abc.Sequence[artist.scene.light_source.LightSource])

Initialize the light sources included in the considered scenario.

The light source array bundles all light sources considered in the scenario. The light source sends out the rays that are then used for ray tracing. The position of the light sources can be dynamic throughout a time span.

Parameters

light_source_listSequence[LightSource]

A list of light sources included in the scenario.

light_source_list
classmethod from_hdf5(config_file: h5py.File, device: torch.device | None = None) typing_extensions.Self

Load a light source array 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.

Returns

LightSourceArray

The light source array loaded from the HDF5 file.