treble_tsdk.collections.ir_info¶
Classes
IRInfo(source: 'Source', receiver: 'Receiver', simulation: 'Simulation', device: 'DeviceObj' = None, device_orientation: 'Rotation' = None, processing: 'ProcessingRecipe' = None) |
|
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_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_orientation: Rotation = None¶
- property ir_type: str¶
Get the type of the IR. Available IR types are: - “Mono” - “Spatial” - “Device” - “Moving”
- processing: ProcessingRecipe = None¶
- simulation: Simulation¶
- class treble_tsdk.collections.ir_info.ProcessingRecipe¶
ProcessingRecipe(filters: ‘list[FilterDefinition]’ = None, filter_structs: ‘list[dict]’ = None, processed: ‘bool’ = False)