From d65371d42f8471ed255d2685a46a913a2100b4b8 Mon Sep 17 00:00:00 2001 From: Martin Diehl Date: Sun, 23 Aug 2020 12:55:55 +0200 Subject: [PATCH] removed unused and untested functionality PEP 20: Explicit is better than implicit. --- python/damask/_geom.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/python/damask/_geom.py b/python/damask/_geom.py index c8963b616..571ae12eb 100644 --- a/python/damask/_geom.py +++ b/python/damask/_geom.py @@ -189,10 +189,7 @@ class Geom: physical size of the microstructure in meter. """ - if size is None: - grid = np.asarray(self.microstructure.shape) - self.size = grid/np.max(grid) - else: + if size is not None: if len(size) != 3 or any(np.array(size) <= 0): raise ValueError(f'Invalid size {size}') else: