From e4891f2d9d70c446544bdd2ca7f0c06d3d628fd7 Mon Sep 17 00:00:00 2001 From: Mike McCann Date: Thu, 18 Dec 2025 21:23:16 -0800 Subject: [PATCH] Initialize self.nudge_total_minutes to 0. --- .vscode/launch.json | 4 +++- src/data/calibrate.py | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index b15d6af..7c83fd7 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -342,7 +342,9 @@ //"args": ["-v", "1", "--mission", "2010.151.04", "--noinput", "--no_cleanup", "--clobber"], //"args": ["-v", "1", "--mission", "2025.316.02", "--noinput", "--no_cleanup", "--add_seconds", "619315200"], // File "/src/data/resample.py", line 587, in save_coordinates f"{self.ds[f'{pitch_corrected_instr}_depth'].attrs['comment']}" - "args": ["-v", "1", "--mission", "2003.164.02", "--noinput", "--no_cleanup" ], + //"args": ["-v", "1", "--mission", "2003.164.02", "--noinput", "--no_cleanup" ], + // File "/src/data/calibrate.py", line 698, in global_metadata f"{self.nudge_total_minutes:.1f} minutes nudged toward GPS fixes." + "args": ["-v", "1", "--mission", "2003.191.00", "--noinput", "--no_cleanup" ], }, { diff --git a/src/data/calibrate.py b/src/data/calibrate.py index b0e118e..627e6b7 100755 --- a/src/data/calibrate.py +++ b/src/data/calibrate.py @@ -642,7 +642,7 @@ def __init__( # noqa: PLR0913 self.clobber = clobber self.noreprocess = noreprocess self.nudge_segment_count = None - self.nudge_total_minutes = None + self.nudge_total_minutes = 0 self.logger.setLevel(self._log_levels[verbose]) def global_metadata(self):