Loading ivas_processing_scripts/audiotools/binaural_datasets/binaural_dataset.py +3 −1 Original line number Diff line number Diff line Loading @@ -80,7 +80,9 @@ def load_hrtf( raise KeyError(f"Key 'IR' not found in .mat file: {filename} !") SourcePosition = mat_contents.get("SourcePosition") latency_s = mat_contents.get("latency_s").astype(np.int32)[0, 0] latency_s = mat_contents.get("latency_s") if latency_s is not None: latency_s = latency_s.astype(np.int32)[0, 0] return IR, SourcePosition, latency_s Loading Loading
ivas_processing_scripts/audiotools/binaural_datasets/binaural_dataset.py +3 −1 Original line number Diff line number Diff line Loading @@ -80,7 +80,9 @@ def load_hrtf( raise KeyError(f"Key 'IR' not found in .mat file: {filename} !") SourcePosition = mat_contents.get("SourcePosition") latency_s = mat_contents.get("latency_s").astype(np.int32)[0, 0] latency_s = mat_contents.get("latency_s") if latency_s is not None: latency_s = latency_s.astype(np.int32)[0, 0] return IR, SourcePosition, latency_s Loading