Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
yrkim98 committed Sep 27, 2024
1 parent be9156e commit 9756bd3
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/allencell_ml_segmenter/training/view.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,12 +298,18 @@ def getTypeOfWork(self) -> str:

def showResults(self) -> None:
# double check to see if a ckpt was generated
exp_path: Optional[Path] = self._experiments_model.get_user_experiments_path()
exp_path: Optional[Path] = (
self._experiments_model.get_user_experiments_path()
)
if exp_path is None:
raise ValueError("Experiments path should not be None after training complete.")
raise ValueError(
"Experiments path should not be None after training complete."
)
exp_name: Optional[str] = self._experiments_model.get_experiment_name()
if exp_name is None:
raise ValueError("Experiment name should not be None after training complete.")
raise ValueError(
"Experiment name should not be None after training complete."
)
ckpt_generated: Optional[Path] = ExperimentUtils.get_best_ckpt(
exp_path,
exp_name,
Expand Down

0 comments on commit 9756bd3

Please sign in to comment.