Skip to content

Commit 4fa2943

Browse files
committed
fix
1 parent 6089528 commit 4fa2943

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

napari_cellseg_annotator/plugin_helper.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
from napari_cellseg_annotator import utils
44

55

6-
76
class Helper(QWidget):
87
# widget testing
98
def __init__(self, parent: "napari.viewer.Viewer"):
@@ -35,4 +34,3 @@ def build(self):
3534

3635
def close(self):
3736
self._viewer.window.remove_dock_widget(self)
38-

napari_cellseg_annotator/plugin_loader.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
from napari_cellseg_annotator.napari_view_simple import launch_viewers
2020

2121

22-
2322
def format_Warning(message, category, filename, lineno, line=""):
2423
return (
2524
str(filename)
@@ -35,6 +34,9 @@ def format_Warning(message, category, filename, lineno, line=""):
3534

3635
warnings.formatwarning = format_Warning
3736

37+
38+
launched = False
39+
3840
class Loader(QWidget):
3941
def __init__(self, parent: "napari.viewer.Viewer"):
4042
super(Loader, self).__init__()
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
from napari_cellseg_annotator.plugin_helper import Helper
22
from napari_cellseg_annotator.plugin_loader import Loader
33

4+
45
def napari_experimental_provide_dock_widget():
56
return [
67
(Loader, {"name": "File loader"}),
78
(Helper, {"name": "Help/About..."}),
89
# (Trainer, {"name": "Trainer"}),
910
# (Predicter, {"name": "Predicter"}),
1011
]
11-

0 commit comments

Comments
 (0)