From 53de458f7df7f7f4fe166417b822b1e46e0f9db5 Mon Sep 17 00:00:00 2001 From: jdeschamps <6367888+jdeschamps@users.noreply.github.com> Date: Fri, 25 Oct 2024 12:13:47 +0200 Subject: [PATCH] fix: Fix wrong if-clause condition --- src/careamics_napari/widgets/tbplot_widget.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/careamics_napari/widgets/tbplot_widget.py b/src/careamics_napari/widgets/tbplot_widget.py index 409db65..2c6b92e 100644 --- a/src/careamics_napari/widgets/tbplot_widget.py +++ b/src/careamics_napari/widgets/tbplot_widget.py @@ -125,7 +125,7 @@ def stop_tb(self: Self) -> None: def open_tb(self: Self) -> None: """Open TensorBoard in the browser.""" - if self.tb is not None and self.train_signal is not None: + if self.tb is None and self.train_signal is not None: from tensorboard import program self.tb = program.TensorBoard()