• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

NeuralEnsemble / elephant / 26033586661

18 May 2026 12:30PM UTC coverage: 88.084% (-0.2%) from 88.294%
26033586661

Pull #608

github

web-flow
Merge 024f8dd46 into be0d70b45
Pull Request #608: [ENH] Move to pyproject.toml

6793 of 7712 relevant lines covered (88.08%)

0.88 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

71.43
/elephant/parallel/__init__.py
1
"""
2
The ``elephant.parallel`` package provides classes to parallelize calls to any
3
user-specified function.
4

5
The typical use case is calling a function many times with different
6
parameters.
7

8
.. note::  This parallelization module is independent from Elephant and can be
9
           used to parallelize mutually independent calls to arbitrary
10
           functions.
11

12
Tutorial
13
--------
14

15
:doc:`View tutorial <../tutorials/parallel>`
16

17
Run tutorial interactively:
18

19
.. image:: https://mybinder.org/badge.svg
20
   :target: https://mybinder.org/v2/gh/NeuralEnsemble/elephant/master
21
            ?filepath=doc/tutorials/parallel.ipynb
22

23

24
Available Executors
25
-------------------
26

27
.. autosummary::
28
    :toctree: _toctree/parallel/
29

30
    ProcessPoolExecutor
31
    MPIPoolExecutor
32
    MPICommExecutor
33

34

35
:copyright: Copyright 2014-2026 by the Elephant team, see `doc/authors.rst`.
36
:license: Modified BSD, see LICENSE.txt for details.
37
"""
38

39
import warnings
1✔
40

41
from .parallel import ProcessPoolExecutor, SingleProcess
1✔
42

43
try:
1✔
44
    from .mpi import MPIPoolExecutor, MPICommExecutor
1✔
45
except ImportError:
×
46
    # mpi4py is missing
47
    warnings.warn("mpi4py package is missing. Please run 'pip install mpi4py' "
×
48
                  "in a terminal to activate MPI features.")
49

50
__all__ = [
1✔
51
    "ProcessPoolExecutor",
52
    "SingleProcess",
53
    "MPIPoolExecutor",
54
    "MPICommExecutor"
55
]
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc