From 26a3aeed9a1d31928b150f1965e251281c620873 Mon Sep 17 00:00:00 2001
From: ferrari <maxence.ferrari@gmail.com>
Date: Thu, 29 Jun 2023 15:05:21 +0200
Subject: [PATCH] Fix error for path without extension

---
 gsrp_tdoa_hyperres.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/gsrp_tdoa_hyperres.py b/gsrp_tdoa_hyperres.py
index 8ae9549..8a67ec2 100755
--- a/gsrp_tdoa_hyperres.py
+++ b/gsrp_tdoa_hyperres.py
@@ -234,6 +234,7 @@ def main(args):
     result1[:, 3:] /= sr if args.temporal else sr/args.decimate
     columns = ','.join(['pos', 'db_norm', 'db'] + [f't{i}{j}'for i, j in combinations(range(sound.shape[1]), 2)])
     stem, ext = os.path.splitext(args.outfile)
+    ext = ext[1:].lower()
     if ext == 'npy':
         np.save(args.outfile, result1)
         if not args.no_hyperres:
-- 
GitLab