From 7ffbcbf8de718f60625a45d55ae2f1ca29354a9e Mon Sep 17 00:00:00 2001 From: Mike McCann Date: Tue, 2 Dec 2025 14:16:00 -0800 Subject: [PATCH 1/2] Fixup summary metadata. --- src/data/resample.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/data/resample.py b/src/data/resample.py index 5f0a155d..a9b409f0 100755 --- a/src/data/resample.py +++ b/src/data/resample.py @@ -333,7 +333,7 @@ def lrauv_global_metadata(self) -> dict: f"point median filter." ) self.metadata["summary"] += ( - f". Processing log file: {BASE_LRAUV_WEB}/" + f" Processing log file: {BASE_LRAUV_WEB}" f"{self.log_file.replace('.nc4', '_processing.log')}" ) # Remove mention of original sampling intervals from summary From ea58fee5f51dac219c32e96ce12431e60d6bc6ea Mon Sep 17 00:00:00 2001 From: Mike McCann Date: Tue, 2 Dec 2025 14:17:01 -0800 Subject: [PATCH 2/2] Add log message to output actual_hostname. --- .vscode/launch.json | 4 ++-- src/data/process.py | 8 ++++++++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index d5d5c0f9..48eb21be 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -360,8 +360,8 @@ // 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", "--clobber"] + "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"] }, ] diff --git a/src/data/process.py b/src/data/process.py index a4e8438b..e641074b 100755 --- a/src/data/process.py +++ b/src/data/process.py @@ -1014,6 +1014,14 @@ def process_log_file(self, log_file: str) -> None: ) self.logger.addHandler(self.log_handler) self.logger.info("commandline = %s", self.commandline) + # Try to get actual host name, fall back to container name + actual_hostname = os.getenv("HOST_NAME", gethostname()) + self.logger.info( + "Processing log_file %s by user %s on host %s", + log_file, + getuser(), + actual_hostname, + ) netcdfs_dir = self.extract(log_file) self.combine(log_file=log_file)