Skip to content

Commit 06de72c

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 04ae791 commit 06de72c

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

cellfinder/core/detect/detect.py

+3-5
Original file line numberDiff line numberDiff line change
@@ -180,12 +180,10 @@ def main(
180180
cells = mp_3d_filter.process(async_results, locks, callback=callback)
181181

182182
time_elapsed = datetime.now() - start_time
183-
logger.debug(f"All Planes done. Found {len(cells)} cells in {format(time_elapsed)}")
184-
print(
185-
"Detection complete - all planes done in : {}".format(
186-
time_elapsed
187-
)
183+
logger.debug(
184+
f"All Planes done. Found {len(cells)} cells in {format(time_elapsed)}"
188185
)
186+
print("Detection complete - all planes done in : {}".format(time_elapsed))
189187
return cells
190188

191189

cellfinder/core/detect/filters/volume/volume_filter.py

+6-4
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,9 @@ def get_results(self) -> List[Cell]:
143143

144144
cells = []
145145

146-
logger.debug(f"Processing {len(self.cell_detector.coords_maps.items())} cells")
146+
logger.debug(
147+
f"Processing {len(self.cell_detector.coords_maps.items())} cells"
148+
)
147149
for cell_id, cell_points in self.cell_detector.coords_maps.items():
148150
cell_volume = len(cell_points)
149151

@@ -159,7 +161,7 @@ def get_results(self) -> List[Cell]:
159161
Cell.UNKNOWN,
160162
)
161163
)
162-
logger.debug(f"Found cell < max_cell_volume.")
164+
logger.debug("Found cell < max_cell_volume.")
163165
else:
164166
if cell_volume < self.max_cluster_size:
165167
try:
@@ -181,7 +183,7 @@ def get_results(self) -> List[Cell]:
181183
Cell.UNKNOWN,
182184
)
183185
)
184-
logger.debug(f"Found cell < max_cluster_size.")
186+
logger.debug("Found cell < max_cluster_size.")
185187
else:
186188
cell_centre = get_structure_centre(cell_points)
187189
cells.append(
@@ -194,7 +196,7 @@ def get_results(self) -> List[Cell]:
194196
Cell.ARTIFACT,
195197
)
196198
)
197-
logger.debug(f"Found artifact cell.")
199+
logger.debug("Found artifact cell.")
198200

199201
logger.debug("Finished splitting cell clusters.")
200202
return cells

0 commit comments

Comments
 (0)