better readable

This commit is contained in:
Martin Diehl 2019-05-29 08:04:01 +02:00
parent dfc2b47abc
commit 6836a2eae8
1 changed files with 2 additions and 2 deletions

View File

@ -58,8 +58,8 @@ for name in filenames:
grid[i] = int(round(grid[i]*float(g.lower().replace('x','')))) if g.lower().endswith('x') \ grid[i] = int(round(grid[i]*float(g.lower().replace('x','')))) if g.lower().endswith('x') \
else int(options.grid[i]) else int(options.grid[i])
new = np.full(grid,options.fill if options.fill is not None else np.nanmax(geom.microstructure)+1, new = np.full(grid,options.fill if options.fill is not None
geom.microstructure.dtype) else np.nanmax(geom.microstructure)+1,geom.microstructure.dtype)
for x in range(geom.microstructure.shape[0]): for x in range(geom.microstructure.shape[0]):
X = x + options.offset[0] X = x + options.offset[0]