From abd2acc93123a59dc4d0a4100b3fdb97211ac7ac Mon Sep 17 00:00:00 2001 From: Sam Bray Date: Thu, 9 Nov 2023 16:10:20 -0800 Subject: [PATCH] Skip epochs where no position tracking info sooner --- src/trodes_to_nwb/convert_position.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/trodes_to_nwb/convert_position.py b/src/trodes_to_nwb/convert_position.py index 87f6cb7..146a2a7 100644 --- a/src/trodes_to_nwb/convert_position.py +++ b/src/trodes_to_nwb/convert_position.py @@ -777,8 +777,8 @@ def add_position( ].full_path.to_list()[0] except IndexError: - position_tracking_filepath = None - position_timestamps_filepath = None + logging.warning(f"No position tracking data found for epoch {epoch}") + continue logger.info(epoch) logger.info(f"\tposition_timestamps_filepath: {position_timestamps_filepath}")