removed unused and untested functionality
PEP 20: Explicit is better than implicit.
This commit is contained in:
parent
6f79573140
commit
d65371d42f
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue