From 754d68677c39d421295efbfe7c3931e2f3bc3446 Mon Sep 17 00:00:00 2001 From: Mangio621 Date: Wed, 14 Jun 2023 18:35:45 +1000 Subject: [PATCH] Added arbitrary try catch for now to scope the echl sys argv issue --- extract_f0_print.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/extract_f0_print.py b/extract_f0_print.py index 219488d..ef86d2b 100644 --- a/extract_f0_print.py +++ b/extract_f0_print.py @@ -26,7 +26,13 @@ def printt(strr): n_p = int(sys.argv[2]) f0method = sys.argv[3] -extraction_crepe_hop_length = int(sys.argv[4]) +extraction_crepe_hop_length = 0 +try: + extraction_crepe_hop_length = int(sys.argv[4]) +except: + print("Temp Issue. echl is not being passed with argument!") + extraction_crepe_hop_length = 128 + print("EXTRACTION CREPE HOP LENGTH: " + str(extraction_crepe_hop_length)) print("EXTRACTION CREPE HOP LENGTH TYPE: " + str(type(extraction_crepe_hop_length)))