if grid is an option, it is a tuple
tuples do not have the prod() function
This commit is contained in:
parent
c2a5f37818
commit
08052737cf
2
PRIVATE
2
PRIVATE
|
@ -1 +1 @@
|
||||||
Subproject commit 85a39db96387330e2509650558fddc31e048e6ea
|
Subproject commit c93e2b1d7c39167fff9f1484857c58d34090d3f6
|
|
@ -270,7 +270,7 @@ for name in filenames:
|
||||||
y = (np.arange(info['grid'][1])+0.5)*info['size'][1]/info['grid'][1]
|
y = (np.arange(info['grid'][1])+0.5)*info['size'][1]/info['grid'][1]
|
||||||
z = (np.arange(info['grid'][2])+0.5)*info['size'][2]/info['grid'][2]
|
z = (np.arange(info['grid'][2])+0.5)*info['size'][2]/info['grid'][2]
|
||||||
X,Y,Z = np.meshgrid(x, y, z,indexing='ij')
|
X,Y,Z = np.meshgrid(x, y, z,indexing='ij')
|
||||||
grid = np.stack((X,Y,Z),axis=-1).reshape((info['grid'].prod(),3),order='F')
|
grid = np.stack((X,Y,Z),axis=-1).reshape((np.prod(info['grid']),3),order='F')
|
||||||
|
|
||||||
damask.util.croak('tessellating...')
|
damask.util.croak('tessellating...')
|
||||||
indices = laguerreTessellation(grid, coords, weights, grains, options.periodic, options.cpus)
|
indices = laguerreTessellation(grid, coords, weights, grains, options.periodic, options.cpus)
|
||||||
|
|
Loading…
Reference in New Issue