polishing of geom_rescale; adopted modified testing reference

This commit is contained in:
Philip Eisenlohr 2019-06-03 14:15:23 -04:00
parent 8e023a1f57
commit 8d52a3d52a
2 changed files with 9 additions and 6 deletions

@ -1 +1 @@
Subproject commit 87a70882eabd333b390ea2bd96d9ebcf65c62c32
Subproject commit 6dc31fe5ce138aa76edec7b8d61a0d2b41863f53

View File

@ -58,10 +58,13 @@ for name in filenames:
damask.util.croak(geom.update(microstructure =
ndimage.interpolation.zoom(
geom.microstructure,
new_grid/grid,output=geom.microstructure.dtype,
order=0,mode='nearest', prefilter=False\
) \
if np.any(new_grid != grid) else None,
new_grid/grid,
output=geom.microstructure.dtype,
order=0,
mode='nearest',
prefilter=False,
) if np.any(new_grid != grid) \
else None,
size = new_size))
geom.add_comments(scriptID + ' ' + ' '.join(sys.argv[1:]))