removed unused and untested functionality

PEP 20: Explicit is better than implicit.
This commit is contained in:
Martin Diehl 2020-08-23 12:55:55 +02:00
parent 6f79573140
commit d65371d42f
1 changed files with 1 additions and 4 deletions

View File

@ -189,10 +189,7 @@ class Geom:
physical size of the microstructure in meter. physical size of the microstructure in meter.
""" """
if size is None: if size is not None:
grid = np.asarray(self.microstructure.shape)
self.size = grid/np.max(grid)
else:
if len(size) != 3 or any(np.array(size) <= 0): if len(size) != 3 or any(np.array(size) <= 0):
raise ValueError(f'Invalid size {size}') raise ValueError(f'Invalid size {size}')
else: else: