Skip to content

Commit

Permalink
RF: Remove check for multiprocessing; its in standard library
Browse files Browse the repository at this point in the history
The multiprocessing package was moved to standard library in
Python 2.7, and we have already dropped Python 2.6 support.
  • Loading branch information
scottclowe committed Jun 4, 2021
1 parent dabf4f2 commit 9870c1d
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions fissa/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

import collections
import glob
from multiprocessing import Pool
import os.path
import sys
import warnings
Expand All @@ -22,15 +23,6 @@
from . import neuropil as npil
from . import roitools

try:
from multiprocessing import Pool
has_multiprocessing = True
except ImportError:
warnings.warn('Multiprocessing library is not installed, using single ' +
'core instead. To use multiprocessing install it by: ' +
'pip install multiprocessing')
has_multiprocessing = False


def extract_func(inputs):
"""Extract data using multiprocessing.
Expand Down Expand Up @@ -306,7 +298,6 @@ def separation_prep(self, redo=False):

# Check whether we should use multiprocessing
use_multiprocessing = (
has_multiprocessing and
(self.ncores_preparation is None or self.ncores_preparation > 1)
)
# Do the extraction
Expand Down Expand Up @@ -437,7 +428,6 @@ def separate(self, redo_prep=False, redo_sep=False):

# Check whether we should use multiprocessing
use_multiprocessing = (
has_multiprocessing and
(self.ncores_separation is None or self.ncores_separation > 1)
)
# Do the extraction
Expand Down

0 comments on commit 9870c1d

Please sign in to comment.