seeds coordinates now rescaled to proper box size.

This commit is contained in:
Philip Eisenlohr 2015-09-29 22:27:46 +00:00
parent 863fe5ddf0
commit 21bcafe3e4
1 changed files with 1 additions and 2 deletions

View File

@ -80,9 +80,8 @@ for name in filenames:
table.data_readArray(labels) # read ASCIItable columns
coords = table.data[:,:3] # assign coordinates
coords = table.data[:,:3]*info['size'] # assign coordinates (rescaled to box size)
grain = table.data[:,3].astype('i') if hasGrains else 1+np.arange(len(coords),dtype='i') # assign grains
# grainIDs = np.unique(grain).astype('i') # find all grainIDs present
# --- generate grid --------------------------------------------------------------------------------