File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1515from enum import Enum
1616from typing import List , Tuple
1717
18- from .utils import MPIComm , medcoupling # type: ignore
18+ # from .utils import MPIComm, medcoupling # type: ignore
19+ from .utils import medcoupling # type: ignore
1920from .exception import NotImplementedMethod
2021from .version import get_icoco_version , get_version_int
2122
@@ -114,7 +115,7 @@ def setDataFile(self, datafile: str) -> None:
114115 raise NotImplementedMethod (prob = f"{ self .__class__ .__module__ } .{ self .__class__ .__name__ } " ,
115116 method = "setDataFile" )
116117
117- def setMPIComm (self , mpicomm : MPIComm ) -> None :
118+ def setMPIComm (self , mpicomm : ' MPIComm' ) -> None : # noqa: F821
118119 """(Optional) Provide the MPI communicator to be used by the code for parallel computations.
119120
120121 This method must be called before initialize(). The communicator should include all the
Original file line number Diff line number Diff line change @@ -26,11 +26,11 @@ class MEDCouplingField: # pylint: disable=too-few-public-methods
2626 """dummy class for MEDCouplingField type hinting"""
2727
2828
29- try :
30- from mpi4py .MPI import Intracomm as MPIComm # type: ignore # pylint: disable=unused-import
31- except ModuleNotFoundError : # pragma: no cover
32- class MPIComm : # pylint: disable=too-few-public-methods
33- """Basic class for type hinting when mi4py is not available"""
29+ # try:
30+ # from mpi4py.MPI import Intracomm as MPIComm # type: ignore # pylint: disable=unused-import
31+ # except ModuleNotFoundError: # pragma: no cover
32+ # class MPIComm: # pylint: disable=too-few-public-methods
33+ # """Basic class for type hinting when mi4py is not available"""
3434
3535
3636class ICoCoMethods : # pylint: disable=too-few-public-methods
You can’t perform that action at this time.
0 commit comments