Skip to content

Commit 672219f

Browse files
committed
lint +sort
1 parent 3628f67 commit 672219f

File tree

4 files changed

+32
-21
lines changed

4 files changed

+32
-21
lines changed

napari_cellseg3d/plugin_convert.py

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -159,12 +159,15 @@ def build(self):
159159
layout.addWidget(small_group_w)
160160
#############################################################
161161

162-
ui.add_widgets(layout, [
163-
ui.add_blank(self),
164-
self.make_close_button(),
165-
ui.add_blank(self),
166-
self.lbl_error
167-
])
162+
ui.add_widgets(
163+
layout,
164+
[
165+
ui.add_blank(self),
166+
self.make_close_button(),
167+
ui.add_blank(self),
168+
self.lbl_error,
169+
],
170+
)
168171

169172
ui.make_scrollable(layout, self, min_wh=[230, 400], base_wh=[230, 450])
170173

napari_cellseg3d/plugin_dock.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
import os
2-
from datetime import datetime
32
import warnings
3+
from datetime import datetime
44
from pathlib import Path
5+
56
import pandas as pd
67

78
# Qt

napari_cellseg3d/plugin_metrics.py

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -83,18 +83,21 @@ def build(self):
8383

8484
metrics_group_w, metrics_group_l = ui.make_group("Data")
8585

86-
ui.add_widgets(metrics_group_l, [
87-
ui.combine_blocks(
88-
right_or_below=self.btn_image_files,
89-
left_or_above=self.lbl_image_files,
90-
min_spacing=70,
91-
), # images -> ground truth
92-
ui.combine_blocks(
93-
right_or_below=self.btn_label_files,
94-
left_or_above=self.lbl_label_files,
95-
min_spacing=70,
96-
), # labels -> prediction
97-
])
86+
ui.add_widgets(
87+
metrics_group_l,
88+
[
89+
ui.combine_blocks(
90+
right_or_below=self.btn_image_files,
91+
left_or_above=self.lbl_image_files,
92+
min_spacing=70,
93+
), # images -> ground truth
94+
ui.combine_blocks(
95+
right_or_below=self.btn_label_files,
96+
left_or_above=self.lbl_label_files,
97+
min_spacing=70,
98+
), # labels -> prediction
99+
],
100+
)
98101

99102
self.lbl_image_files.setText("Ground truth")
100103

@@ -106,7 +109,9 @@ def build(self):
106109
############################
107110
param_group_w, param_group_l = ui.make_group("Parameters")
108111

109-
ui.add_widgets(param_group_l, [self.threshold_box, self.rotate_choice], None)
112+
ui.add_widgets(
113+
param_group_l, [self.threshold_box, self.rotate_choice], None
114+
)
110115

111116
param_group_w.setLayout(param_group_l)
112117
##############################

napari_cellseg3d/plugin_model_inference.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@
99

1010
# local
1111
from napari_cellseg3d import interface as ui
12-
from napari_cellseg3d import model_instance_seg as inst_seg # TODO move calls to model worker
12+
from napari_cellseg3d import (
13+
model_instance_seg as inst_seg,
14+
) # TODO move calls to model worker
1315
from napari_cellseg3d import utils
1416
from napari_cellseg3d.model_framework import ModelFramework
1517
from napari_cellseg3d.model_workers import InferenceWorker

0 commit comments

Comments
 (0)