Commit 5b73dc2f authored by Anika Treffehn's avatar Anika Treffehn
Browse files

small change for latency

parent 69b14aff
Loading
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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