Skip to content

Commit 419c345

Browse files
committed
ruff linting
1 parent fffa9f4 commit 419c345

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/scportrait/pipeline/segmentation/workflows.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
from skimage.filters import median
1616
from skimage.morphology import binary_erosion, dilation, disk, erosion
1717
from skimage.segmentation import watershed
18-
import _multiprocessing
1918

2019
from scportrait.pipeline._utils.segmentation import (
2120
contact_filter,
@@ -1355,7 +1354,7 @@ def _check_gpu_status(self):
13551354
cpu_id = int(cpu_name[cpu_name.find("-") + 1 :]) - 1
13561355

13571356
if cpu_id >= len(gpu_id_list):
1358-
cpu_id = cpu_id%current.n_processes
1357+
cpu_id = cpu_id % current.n_processes
13591358

13601359
# track gpu_id and update GPU status
13611360
self.gpu_id = gpu_id_list[cpu_id]

0 commit comments

Comments
 (0)