Skip to content

Commit

Permalink
ruff linting
Browse files Browse the repository at this point in the history
  • Loading branch information
sophiamaedler committed Jan 18, 2025
1 parent fffa9f4 commit 419c345
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/scportrait/pipeline/segmentation/workflows.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
from skimage.filters import median
from skimage.morphology import binary_erosion, dilation, disk, erosion
from skimage.segmentation import watershed
import _multiprocessing

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

if cpu_id >= len(gpu_id_list):
cpu_id = cpu_id%current.n_processes
cpu_id = cpu_id % current.n_processes

# track gpu_id and update GPU status
self.gpu_id = gpu_id_list[cpu_id]
Expand Down

0 comments on commit 419c345

Please sign in to comment.