polishing
This commit is contained in:
parent
094d4d0613
commit
c89d344236
|
@ -4,10 +4,10 @@
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
import numpy as np
|
import numpy as np
|
||||||
import damask
|
|
||||||
from io import StringIO
|
from io import StringIO
|
||||||
from scipy import ndimage
|
from scipy import ndimage
|
||||||
from optparse import OptionParser
|
from optparse import OptionParser
|
||||||
|
import damask
|
||||||
|
|
||||||
scriptName = os.path.splitext(os.path.basename(__file__))[0]
|
scriptName = os.path.splitext(os.path.basename(__file__))[0]
|
||||||
scriptID = ' '.join([scriptName,damask.version])
|
scriptID = ' '.join([scriptName,damask.version])
|
||||||
|
|
|
@ -58,7 +58,7 @@ for name in filenames:
|
||||||
geom = damask.Geom.from_file(name)
|
geom = damask.Geom.from_file(name)
|
||||||
microstructure = geom.microstructure
|
microstructure = geom.microstructure
|
||||||
|
|
||||||
for k, v in sub.items(): microstructure[geom.microstructure==k] = v # substitute microstructure indices
|
for k, v in sub.items(): microstructure[geom.microstructure==k] = v # substitute microstructure indices
|
||||||
|
|
||||||
microstructure += options.microstructure # shift microstructure indices
|
microstructure += options.microstructure # shift microstructure indices
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue