treble_tsdk.collections.ir_info

Classes

IRInfo

IRInfo(source: 'Source', receiver: 'Receiver', simulation: 'Simulation', device: 'DeviceObj' = None, device_orientation: 'Rotation' = None, processing: 'ProcessingRecipe' = None)

ProcessingRecipe

ProcessingRecipe(filters: 'list[FilterDefinition]' = None, filter_structs: 'list[dict]' = None, processed: 'bool' = False)

class treble_tsdk.collections.ir_info.IRInfo

IRInfo(source: ‘Source’, receiver: ‘Receiver’, simulation: ‘Simulation’, device: ‘DeviceObj’ = None, device_orientation: ‘Rotation’ = None, processing: ‘ProcessingRecipe’ = None)

__init__(source: Source, receiver: Receiver, simulation: Simulation, device: DeviceObj | None = None, device_orientation: Rotation | None = None, processing: ProcessingRecipe | None = None) None
get_device_ir(data_loader: IRDataLoader | None = None, load_spatial_ir_if_missing: bool = False) DeviceIR

Get DeviceIR object from IRInfo. :param data_loader: Optional but recommended. IRDataLoader object to use for loading the IR data to/from cache. If None, a new lazy IRDataLoader will be created which will load data to a temporary directory. :param load_spatial_ir_if_missing: If True, load the spatial ir if it is not present, having the spatial ir will allow you to rotate and change devices on device irs.

get_mono_ir(data_loader: IRDataLoader | None = None) MonoIR

Get MonoIR object from IRInfo. :param data_loader: Optional but recommended. IRDataLoader object to use for loading the IR data to/from cache. If None, a new lazy IRDataLoader will be created which will load data to a temporary directory.

get_moving_ir(data_loader: IRDataLoader | None = None) MovingIR
get_spatial_ir(data_loader: IRDataLoader | None = None) SpatialIR

Get SpatialIR object from IRInfo. :param data_loader: Optional but recommended. IRDataLoader object to use for loading the IR data to/from cache. If None, a new lazy IRDataLoader will be created which will load data to a temporary directory.

device: DeviceObj = None
device_orientation: Rotation = None
property id: str
property ir_type: str

Get the type of the IR. Available IR types are: - “Mono” - “Spatial” - “Device” - “Moving”

processing: ProcessingRecipe = None
receiver: Receiver
simulation: Simulation
source: Source
class treble_tsdk.collections.ir_info.ProcessingRecipe

ProcessingRecipe(filters: ‘list[FilterDefinition]’ = None, filter_structs: ‘list[dict]’ = None, processed: ‘bool’ = False)

__init__(filters: list[FilterDefinition] | None = None, filter_structs: list[dict] | None = None, processed: bool = False) None
filter_structs: list[dict] = None
filters: list[FilterDefinition] = None
processed: bool = False