polishing

oder of imports is build-in, 3rd party, internal
This commit is contained in:
Martin Diehl 2021-11-03 07:53:38 +01:00
parent 59a6dc3652
commit f0c587d4aa
3 changed files with 5 additions and 3 deletions

View File

@ -95,7 +95,7 @@ mypy:
stage: python
script:
- cd $DAMASKROOT/python
- mypy damask/*.py
- mypy -m damask
except:
- master
- release

View File

@ -11,11 +11,13 @@ the following operations are required for tensorial data:
- D1 = D3.reshape(cells+(-1,)).reshape(-1,9,order='F')
"""
from scipy import spatial as _spatial
from typing import Sequence, Tuple, Union
from scipy import spatial as _spatial
import numpy as _np
def _ks(size: _np.ndarray, cells: Union[_np.ndarray,Sequence[int]], first_order: bool = False) -> _np.ndarray:
"""
Get wave numbers operator.

View File

@ -1,8 +1,8 @@
"""Functionality for generation of seed points for Voronoi or Laguerre tessellation."""
from scipy import spatial as _spatial
from typing import Sequence,Tuple
from scipy import spatial as _spatial
import numpy as _np
from . import util as _util