From 38cd7810b2d4b305da930c16df08cd3cb387d334 Mon Sep 17 00:00:00 2001 From: Mike McCann Date: Tue, 2 Dec 2025 15:07:07 -0800 Subject: [PATCH] Trap EOFError for "No universals_time variable in combined_nc". --- .vscode/launch.json | 3 ++- src/data/process.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index 48eb21b..703c21d 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -360,8 +360,9 @@ // Fails with ValueError: different number of dimensions on data and dims: 2 vs 1 for wetlabsubat_digitized_raw_ad_counts variable //"args": ["-v", "1", "--log_file", "pontus/missionlogs/2025/20250604_20250616/20250608T020852/202506080209_202506081934.nc4", "--no_cleanup"] // Full month of June 2025 for Pontus with WetLabsUBAT Group data - "args": ["-v", "1", "--auv_name", "pontus", "--start", "20250601T000000", "--end", "20250702T000000", "--noinput", "--num_cores", "1", "--no_cleanup"] + //"args": ["-v", "1", "--auv_name", "pontus", "--start", "20250601T000000", "--end", "20250702T000000", "--noinput", "--num_cores", "1", "--no_cleanup"] //"args": ["-v", "1", "--auv_name", "pontus", "--start", "20250601T000000", "--end", "20250702T000000", "--noinput", "--num_cores", "1", "--no_cleanup", "--clobber"] + "args": ["-v", "1", "--log_file", "pontus/missionlogs/2025/20250623_20250707/20250707T043011/slate.nc4", "--no_cleanup"] }, ] diff --git a/src/data/process.py b/src/data/process.py index e641074..518dfce 100755 --- a/src/data/process.py +++ b/src/data/process.py @@ -104,7 +104,7 @@ def wrapper(self, log_file: str): t_start = time.time() try: return func(self, log_file) - except (TestMission, FailedMission) as e: + except (TestMission, FailedMission, EOFError) as e: self.logger.info(str(e)) finally: if hasattr(self, "log_handler"):