From 36ede1caf6bb8ca201e356479ba3b28f87bd5932 Mon Sep 17 00:00:00 2001 From: Albert Tian Chen Date: Mon, 12 Aug 2024 13:31:15 -0400 Subject: [PATCH] Fix small typos --- dacapo/train.py | 2 +- dacapo/validate.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dacapo/train.py b/dacapo/train.py index e5c2ae4cc..a1d884b3d 100644 --- a/dacapo/train.py +++ b/dacapo/train.py @@ -57,7 +57,7 @@ def train_run(run: Run, do_validate=True): ValueError: If run_name is not found in config store """ - print(f"Starting/resuming training for run {run}...") + print(f"Starting/resuming training for run {run.name}...") # create run diff --git a/dacapo/validate.py b/dacapo/validate.py index 0da9dfa30..44f091e7a 100644 --- a/dacapo/validate.py +++ b/dacapo/validate.py @@ -186,7 +186,7 @@ def validate( run.name, iteration, validation_dataset.name ) compute_context = create_compute_context() - sucess = predict( + success = predict( run, iteration if compute_context.distribute_workers else None, input_container=input_raw_array_identifier.container, @@ -198,7 +198,7 @@ def validate( overwrite=overwrite, ) - if not sucess: + if not success: logger.error( f"Could not predict run {run.name} on dataset {validation_dataset.name}." )