From 6765e2d39002f3c30a95ac5bace4da9ceb15e918 Mon Sep 17 00:00:00 2001 From: Théo de la Hogue Date: Wed, 14 Sep 2022 15:40:56 +0200 Subject: Allowing to select all segment by omitting timerange argument. --- src/argaze/utils/export_tobii_segment_aruco_visual_scan.py | 5 ++++- src/argaze/utils/export_tobii_segment_movements.py | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/argaze/utils/export_tobii_segment_aruco_visual_scan.py b/src/argaze/utils/export_tobii_segment_aruco_visual_scan.py index e2e52cc..711cf3b 100644 --- a/src/argaze/utils/export_tobii_segment_aruco_visual_scan.py +++ b/src/argaze/utils/export_tobii_segment_aruco_visual_scan.py @@ -59,7 +59,10 @@ def main(): destination_path = args.segment_path # Export into a dedicated time range folder - timerange_path = f'[{int(args.time_range[0])}s - {int(args.time_range[1])}s]' + if args.time_range[1] != None: + timerange_path = f'[{int(args.time_range[0])}s - {int(args.time_range[1])}s]' + else: + timerange_path = f'[all]' destination_path = f'{destination_path}/{timerange_path}' diff --git a/src/argaze/utils/export_tobii_segment_movements.py b/src/argaze/utils/export_tobii_segment_movements.py index ece8cff..cb2e607 100644 --- a/src/argaze/utils/export_tobii_segment_movements.py +++ b/src/argaze/utils/export_tobii_segment_movements.py @@ -43,7 +43,10 @@ def main(): destination_path = args.segment_path # Export into a dedicated time range folder - timerange_path = f'[{int(args.time_range[0])}s - {int(args.time_range[1])}s]' + if args.time_range[1] != None: + timerange_path = f'[{int(args.time_range[0])}s - {int(args.time_range[1])}s]' + else: + timerange_path = f'[all]' destination_path = f'{destination_path}/{timerange_path}' -- cgit v1.1