From e501e76d842356b90a49ffec6626bdc80d9c57c6 Mon Sep 17 00:00:00 2001 From: Martin Diehl Date: Thu, 16 Feb 2023 19:40:09 +0100 Subject: [PATCH] sphinx does not handle white spaces properly --- python/damask/grid_filters.py | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/python/damask/grid_filters.py b/python/damask/grid_filters.py index fab346c4e..9f7c6c1d4 100644 --- a/python/damask/grid_filters.py +++ b/python/damask/grid_filters.py @@ -564,17 +564,10 @@ def unravel_index(idx: _np.ndarray) -> _np.ndarray: >>> seq = np.arange(6).reshape((3,2,1),order='F') >>> (coord_idx := damask.grid_filters.unravel_index(seq)) array([[[[0, 0, 0]], - [[0, 1, 0]]], - - [[[1, 0, 0]], - [[1, 1, 0]]], - - [[[2, 0, 0]], - [[2, 1, 0]]]]) >>> coord_idx[1,1,0] array([1, 1, 0]) @@ -608,17 +601,12 @@ def ravel_index(idx: _np.ndarray) -> _np.ndarray: >>> import damask >>> (rev := np.array([[1,1,0],[0,1,0],[1,0,0],[0,0,0]]).reshape((2,2,1,3))) array([[[[1, 1, 0]], - [[0, 1, 0]]], - - [[[1, 0, 0]], - [[0, 0, 0]]]]) >>> (flat_idx := damask.grid_filters.ravel_index(rev)) array([[[3], [2]], - [[1], [0]]])