python files now report their version depending on VERSION file in $DAMASK_ROOT
This commit is contained in:
parent
f2c7eea161
commit
7c9d344601
|
@ -6,8 +6,8 @@ import numpy as np
|
||||||
from optparse import OptionParser
|
from optparse import OptionParser
|
||||||
import damask
|
import damask
|
||||||
|
|
||||||
scriptID = string.replace('$Id$','\n','\\n')
|
scriptName = os.path.splitext(os.path.basename(__file__))[0]
|
||||||
scriptName = os.path.splitext(scriptID.split()[1])[0]
|
scriptID = ' '.join([scriptName,damask.version])
|
||||||
|
|
||||||
|
|
||||||
#--------------------------------------------------------------------------------------------------
|
#--------------------------------------------------------------------------------------------------
|
||||||
|
|
|
@ -8,8 +8,8 @@ from shutil import copy2
|
||||||
from re import split
|
from re import split
|
||||||
import damask
|
import damask
|
||||||
|
|
||||||
scriptID = string.replace('$Id: yieldSurface.py 3942 2015-02-25 17:24:33Z MPIE\hm.zhang $','\n','\\n')
|
scriptName = os.path.splitext(os.path.basename(__file__))[0]
|
||||||
scriptName = scriptID.split()[1][:-3]
|
scriptID = ' '.join([scriptName,damask.version])
|
||||||
|
|
||||||
def list_split(option, opt, value, parser):
|
def list_split(option, opt, value, parser):
|
||||||
setattr(parser.values, option.dest, value.split(','))
|
setattr(parser.values, option.dest, value.split(','))
|
||||||
|
|
|
@ -5,8 +5,8 @@ import os,sys,string,re,numpy,scipy.ndimage,scipy.signal,vtk
|
||||||
import damask
|
import damask
|
||||||
from optparse import OptionParser, OptionGroup, Option, SUPPRESS_HELP
|
from optparse import OptionParser, OptionGroup, Option, SUPPRESS_HELP
|
||||||
|
|
||||||
scriptID = '$Id$'
|
scriptName = os.path.splitext(os.path.basename(__file__))[0]
|
||||||
scriptName = scriptID.split()[1]
|
scriptID = ' '.join([scriptName,damask.version])
|
||||||
|
|
||||||
#--------------------------------------------------------------------------------------------------
|
#--------------------------------------------------------------------------------------------------
|
||||||
class extendedOption(Option):
|
class extendedOption(Option):
|
||||||
|
|
|
@ -5,8 +5,8 @@ import os,sys,string,re,numpy,scipy.ndimage,scipy.signal,vtk
|
||||||
import damask
|
import damask
|
||||||
from optparse import OptionParser, OptionGroup, Option, SUPPRESS_HELP
|
from optparse import OptionParser, OptionGroup, Option, SUPPRESS_HELP
|
||||||
|
|
||||||
scriptID = '$Id$'
|
scriptName = os.path.splitext(os.path.basename(__file__))[0]
|
||||||
scriptName = scriptID.split()[1]
|
scriptID = ' '.join([scriptName,damask.version])
|
||||||
|
|
||||||
scalingFactor = { \
|
scalingFactor = { \
|
||||||
'm': {
|
'm': {
|
||||||
|
|
|
@ -7,8 +7,8 @@ from optparse import OptionParser
|
||||||
import damask
|
import damask
|
||||||
from damask.util import leastsqBound
|
from damask.util import leastsqBound
|
||||||
|
|
||||||
scriptID = string.replace('$Id$','\n','\\n')
|
scriptName = os.path.splitext(os.path.basename(__file__))[0]
|
||||||
scriptName = os.path.splitext(scriptID.split()[1])[0]
|
scriptID = ' '.join([scriptName,damask.version])
|
||||||
|
|
||||||
def runFit(exponent, eqStress, dimension, criterion):
|
def runFit(exponent, eqStress, dimension, criterion):
|
||||||
global s, threads, myFit, myLoad
|
global s, threads, myFit, myLoad
|
||||||
|
|
|
@ -6,8 +6,8 @@ import numpy as np
|
||||||
from optparse import OptionParser
|
from optparse import OptionParser
|
||||||
import damask
|
import damask
|
||||||
|
|
||||||
scriptID = string.replace('$Id$','\n','\\n')
|
scriptName = os.path.splitext(os.path.basename(__file__))[0]
|
||||||
scriptName = os.path.splitext(scriptID.split()[1])[0]
|
scriptID = ' '.join([scriptName,damask.version])
|
||||||
|
|
||||||
def outStdout(cmd,locals):
|
def outStdout(cmd,locals):
|
||||||
if cmd[0:3] == '(!)':
|
if cmd[0:3] == '(!)':
|
||||||
|
|
|
@ -6,8 +6,8 @@ import numpy as np
|
||||||
from optparse import OptionParser
|
from optparse import OptionParser
|
||||||
import damask
|
import damask
|
||||||
|
|
||||||
scriptID = string.replace('$Id: addAPS34IDEstrainCoord.py 3828M 2015-05-16 07:28:21Z (local) $','\n','\\n')
|
scriptName = os.path.splitext(os.path.basename(__file__))[0]
|
||||||
scriptName = os.path.splitext(scriptID.split()[1])[0]
|
scriptID = ' '.join([scriptName,damask.version])
|
||||||
|
|
||||||
|
|
||||||
# --------------------------------------------------------------------
|
# --------------------------------------------------------------------
|
||||||
|
|
|
@ -7,8 +7,8 @@ import numpy as np
|
||||||
from optparse import OptionParser
|
from optparse import OptionParser
|
||||||
import damask
|
import damask
|
||||||
|
|
||||||
scriptID = string.replace('$Id$','\n','\\n')
|
scriptName = os.path.splitext(os.path.basename(__file__))[0]
|
||||||
scriptName = os.path.splitext(scriptID.split()[1])[0]
|
scriptID = ' '.join([scriptName,damask.version])
|
||||||
|
|
||||||
def unravel(item):
|
def unravel(item):
|
||||||
if hasattr(item,'__contains__'): return ' '.join(map(unravel,item))
|
if hasattr(item,'__contains__'): return ' '.join(map(unravel,item))
|
||||||
|
|
|
@ -6,8 +6,8 @@ import numpy as np
|
||||||
from optparse import OptionParser
|
from optparse import OptionParser
|
||||||
import damask
|
import damask
|
||||||
|
|
||||||
scriptID = string.replace('$Id$','\n','\\n')
|
scriptName = os.path.splitext(os.path.basename(__file__))[0]
|
||||||
scriptName = os.path.splitext(scriptID.split()[1])[0]
|
scriptID = ' '.join([scriptName,damask.version])
|
||||||
|
|
||||||
# --------------------------------------------------------------------
|
# --------------------------------------------------------------------
|
||||||
# MAIN
|
# MAIN
|
||||||
|
|
|
@ -6,8 +6,8 @@ import numpy as np
|
||||||
from optparse import OptionParser
|
from optparse import OptionParser
|
||||||
import damask
|
import damask
|
||||||
|
|
||||||
scriptID = string.replace('$Id$','\n','\\n')
|
scriptName = os.path.splitext(os.path.basename(__file__))[0]
|
||||||
scriptName = os.path.splitext(scriptID.split()[1])[0]
|
scriptID = ' '.join([scriptName,damask.version])
|
||||||
|
|
||||||
# --------------------------------------------------------------------
|
# --------------------------------------------------------------------
|
||||||
# MAIN
|
# MAIN
|
||||||
|
|
|
@ -6,8 +6,8 @@ import numpy as np
|
||||||
from optparse import OptionParser
|
from optparse import OptionParser
|
||||||
import damask
|
import damask
|
||||||
|
|
||||||
scriptID = string.replace('$Id$','\n','\\n')
|
scriptName = os.path.splitext(os.path.basename(__file__))[0]
|
||||||
scriptName = os.path.splitext(scriptID.split()[1])[0]
|
scriptID = ' '.join([scriptName,damask.version])
|
||||||
|
|
||||||
# --------------------------------------------------------------------
|
# --------------------------------------------------------------------
|
||||||
# MAIN
|
# MAIN
|
||||||
|
|
|
@ -6,8 +6,8 @@ import numpy as np
|
||||||
from optparse import OptionParser
|
from optparse import OptionParser
|
||||||
import damask
|
import damask
|
||||||
|
|
||||||
scriptID = string.replace('$Id$','\n','\\n')
|
scriptName = os.path.splitext(os.path.basename(__file__))[0]
|
||||||
scriptName = os.path.splitext(scriptID.split()[1])[0]
|
scriptID = ' '.join([scriptName,damask.version])
|
||||||
|
|
||||||
def curlFFT(geomdim,field):
|
def curlFFT(geomdim,field):
|
||||||
N = grid.prod() # field size
|
N = grid.prod() # field size
|
||||||
|
|
|
@ -6,8 +6,8 @@ import numpy as np
|
||||||
from optparse import OptionParser
|
from optparse import OptionParser
|
||||||
import damask
|
import damask
|
||||||
|
|
||||||
scriptID = string.replace('$Id$','\n','\\n')
|
scriptName = os.path.splitext(os.path.basename(__file__))[0]
|
||||||
scriptName = os.path.splitext(scriptID.split()[1])[0]
|
scriptID = ' '.join([scriptName,damask.version])
|
||||||
|
|
||||||
#--------------------------------------------------------------------------------------------------
|
#--------------------------------------------------------------------------------------------------
|
||||||
def deformedCoordsFFT(F,undeformed=False):
|
def deformedCoordsFFT(F,undeformed=False):
|
||||||
|
|
|
@ -5,8 +5,8 @@ import os,sys,string
|
||||||
from optparse import OptionParser
|
from optparse import OptionParser
|
||||||
import damask
|
import damask
|
||||||
|
|
||||||
scriptID = string.replace('$Id$','\n','\\n')
|
scriptName = os.path.splitext(os.path.basename(__file__))[0]
|
||||||
scriptName = os.path.splitext(scriptID.split()[1])[0]
|
scriptID = ' '.join([scriptName,damask.version])
|
||||||
|
|
||||||
def determinant(m):
|
def determinant(m):
|
||||||
return +m[0]*m[4]*m[8] \
|
return +m[0]*m[4]*m[8] \
|
||||||
|
|
|
@ -5,8 +5,8 @@ import os,sys,string
|
||||||
from optparse import OptionParser
|
from optparse import OptionParser
|
||||||
import damask
|
import damask
|
||||||
|
|
||||||
scriptID = string.replace('$Id$','\n','\\n')
|
scriptName = os.path.splitext(os.path.basename(__file__))[0]
|
||||||
scriptName = os.path.splitext(scriptID.split()[1])[0]
|
scriptID = ' '.join([scriptName,damask.version])
|
||||||
|
|
||||||
oneThird = 1.0/3.0
|
oneThird = 1.0/3.0
|
||||||
|
|
||||||
|
|
|
@ -6,8 +6,8 @@ import numpy as np
|
||||||
from optparse import OptionParser
|
from optparse import OptionParser
|
||||||
import damask
|
import damask
|
||||||
|
|
||||||
scriptID = string.replace('$Id$','\n','\\n')
|
scriptName = os.path.splitext(os.path.basename(__file__))[0]
|
||||||
scriptName = os.path.splitext(scriptID.split()[1])[0]
|
scriptID = ' '.join([scriptName,damask.version])
|
||||||
|
|
||||||
def divFFT(geomdim,field):
|
def divFFT(geomdim,field):
|
||||||
N = grid.prod() # field size
|
N = grid.prod() # field size
|
||||||
|
|
|
@ -6,8 +6,8 @@ import numpy as np
|
||||||
from optparse import OptionParser
|
from optparse import OptionParser
|
||||||
import damask
|
import damask
|
||||||
|
|
||||||
scriptID = string.replace('$Id$','\n','\\n')
|
scriptName = os.path.splitext(os.path.basename(__file__))[0]
|
||||||
scriptName = os.path.splitext(scriptID.split()[1])[0]
|
scriptID = ' '.join([scriptName,damask.version])
|
||||||
|
|
||||||
def normalize(vec):
|
def normalize(vec):
|
||||||
return vec/np.sqrt(np.inner(vec,vec))
|
return vec/np.sqrt(np.inner(vec,vec))
|
||||||
|
|
|
@ -7,8 +7,8 @@ from scipy import ndimage
|
||||||
from optparse import OptionParser
|
from optparse import OptionParser
|
||||||
import damask
|
import damask
|
||||||
|
|
||||||
scriptID = string.replace('$Id$','\n','\\n')
|
scriptName = os.path.splitext(os.path.basename(__file__))[0]
|
||||||
scriptName = os.path.splitext(scriptID.split()[1])[0]
|
scriptID = ' '.join([scriptName,damask.version])
|
||||||
|
|
||||||
def periodic_3Dpad(array, rimdim=(1,1,1)):
|
def periodic_3Dpad(array, rimdim=(1,1,1)):
|
||||||
|
|
||||||
|
|
|
@ -7,8 +7,8 @@ from optparse import OptionParser
|
||||||
from scipy import spatial
|
from scipy import spatial
|
||||||
from collections import defaultdict
|
from collections import defaultdict
|
||||||
|
|
||||||
scriptID = string.replace('$Id$','\n','\\n')
|
scriptName = os.path.splitext(os.path.basename(__file__))[0]
|
||||||
scriptName = os.path.splitext(scriptID.split()[1])[0]
|
scriptID = ' '.join([scriptName,damask.version])
|
||||||
|
|
||||||
|
|
||||||
parser = OptionParser(option_class=damask.extendableOption, usage='%prog options [file[s]]', description = """
|
parser = OptionParser(option_class=damask.extendableOption, usage='%prog options [file[s]]', description = """
|
||||||
|
|
|
@ -6,8 +6,8 @@ import numpy as np
|
||||||
from optparse import OptionParser
|
from optparse import OptionParser
|
||||||
import damask
|
import damask
|
||||||
|
|
||||||
scriptID = string.replace('$Id$','\n','\\n')
|
scriptName = os.path.splitext(os.path.basename(__file__))[0]
|
||||||
scriptName = os.path.splitext(scriptID.split()[1])[0]
|
scriptID = ' '.join([scriptName,damask.version])
|
||||||
|
|
||||||
# --------------------------------------------------------------------
|
# --------------------------------------------------------------------
|
||||||
# MAIN
|
# MAIN
|
||||||
|
|
|
@ -5,8 +5,8 @@ import os,sys,string
|
||||||
from optparse import OptionParser
|
from optparse import OptionParser
|
||||||
import damask
|
import damask
|
||||||
|
|
||||||
scriptID = string.replace('$Id$','\n','\\n')
|
scriptName = os.path.splitext(os.path.basename(__file__))[0]
|
||||||
scriptName = os.path.splitext(scriptID.split()[1])[0]
|
scriptID = ' '.join([scriptName,damask.version])
|
||||||
|
|
||||||
# --------------------------------------------------------------------
|
# --------------------------------------------------------------------
|
||||||
# MAIN
|
# MAIN
|
||||||
|
|
|
@ -6,8 +6,8 @@ import numpy as np
|
||||||
from optparse import OptionParser
|
from optparse import OptionParser
|
||||||
import damask
|
import damask
|
||||||
|
|
||||||
scriptID = string.replace('$Id$','\n','\\n')
|
scriptName = os.path.splitext(os.path.basename(__file__))[0]
|
||||||
scriptName = os.path.splitext(scriptID.split()[1])[0]
|
scriptID = ' '.join([scriptName,damask.version])
|
||||||
|
|
||||||
def Mises(what,tensor):
|
def Mises(what,tensor):
|
||||||
|
|
||||||
|
|
|
@ -5,8 +5,8 @@ import os,sys,math,string
|
||||||
from optparse import OptionParser
|
from optparse import OptionParser
|
||||||
import damask
|
import damask
|
||||||
|
|
||||||
scriptID = string.replace('$Id$','\n','\\n')
|
scriptName = os.path.splitext(os.path.basename(__file__))[0]
|
||||||
scriptName = os.path.splitext(scriptID.split()[1])[0]
|
scriptID = ' '.join([scriptName,damask.version])
|
||||||
|
|
||||||
# definition of element-wise p-norms for matrices
|
# definition of element-wise p-norms for matrices
|
||||||
|
|
||||||
|
|
|
@ -6,8 +6,8 @@ import numpy as np
|
||||||
from optparse import OptionParser
|
from optparse import OptionParser
|
||||||
import damask
|
import damask
|
||||||
|
|
||||||
scriptID = string.replace('$Id$','\n','\\n')
|
scriptName = os.path.splitext(os.path.basename(__file__))[0]
|
||||||
scriptName = os.path.splitext(scriptID.split()[1])[0]
|
scriptID = ' '.join([scriptName,damask.version])
|
||||||
|
|
||||||
# --------------------------------------------------------------------
|
# --------------------------------------------------------------------
|
||||||
# MAIN
|
# MAIN
|
||||||
|
|
|
@ -6,8 +6,8 @@ import numpy as np
|
||||||
from optparse import OptionParser
|
from optparse import OptionParser
|
||||||
import damask
|
import damask
|
||||||
|
|
||||||
scriptID = string.replace('$Id$','\n','\\n')
|
scriptName = os.path.splitext(os.path.basename(__file__))[0]
|
||||||
scriptName = os.path.splitext(scriptID.split()[1])[0]
|
scriptID = ' '.join([scriptName,damask.version])
|
||||||
|
|
||||||
# --------------------------------------------------------------------
|
# --------------------------------------------------------------------
|
||||||
# MAIN
|
# MAIN
|
||||||
|
|
|
@ -6,8 +6,8 @@ import numpy as np
|
||||||
from optparse import OptionParser
|
from optparse import OptionParser
|
||||||
import damask
|
import damask
|
||||||
|
|
||||||
scriptID = string.replace('$Id$','\n','\\n')
|
scriptName = os.path.splitext(os.path.basename(__file__))[0]
|
||||||
scriptName = os.path.splitext(scriptID.split()[1])[0]
|
scriptID = ' '.join([scriptName,damask.version])
|
||||||
|
|
||||||
# --------------------------------------------------------------------
|
# --------------------------------------------------------------------
|
||||||
# MAIN
|
# MAIN
|
||||||
|
|
|
@ -5,8 +5,8 @@ import os,sys,string,numpy as np
|
||||||
from optparse import OptionParser
|
from optparse import OptionParser
|
||||||
import damask
|
import damask
|
||||||
|
|
||||||
scriptID = string.replace('$Id$','\n','\\n')
|
scriptName = os.path.splitext(os.path.basename(__file__))[0]
|
||||||
scriptName = os.path.splitext(scriptID.split()[1])[0]
|
scriptID = ' '.join([scriptName,damask.version])
|
||||||
|
|
||||||
|
|
||||||
# --------------------------------------------------------------------
|
# --------------------------------------------------------------------
|
||||||
|
|
|
@ -6,8 +6,8 @@ import numpy as np
|
||||||
from optparse import OptionParser
|
from optparse import OptionParser
|
||||||
import damask
|
import damask
|
||||||
|
|
||||||
scriptID = string.replace('$Id$','\n','\\n')
|
scriptName = os.path.splitext(os.path.basename(__file__))[0]
|
||||||
scriptName = os.path.splitext(scriptID.split()[1])[0]
|
scriptID = ' '.join([scriptName,damask.version])
|
||||||
|
|
||||||
slipnormal_temp = [
|
slipnormal_temp = [
|
||||||
[0,0,0,1],
|
[0,0,0,1],
|
||||||
|
|
|
@ -6,8 +6,8 @@ import numpy as np
|
||||||
from optparse import OptionParser
|
from optparse import OptionParser
|
||||||
import damask
|
import damask
|
||||||
|
|
||||||
scriptID = string.replace('$Id$','\n','\\n')
|
scriptName = os.path.splitext(os.path.basename(__file__))[0]
|
||||||
scriptName = os.path.splitext(scriptID.split()[1])[0]
|
scriptID = ' '.join([scriptName,damask.version])
|
||||||
|
|
||||||
# --------------------------------------------------------------------
|
# --------------------------------------------------------------------
|
||||||
# MAIN
|
# MAIN
|
||||||
|
|
|
@ -6,8 +6,8 @@ import numpy as np
|
||||||
from optparse import OptionParser
|
from optparse import OptionParser
|
||||||
import damask
|
import damask
|
||||||
|
|
||||||
scriptID = string.replace('$Id$','\n','\\n')
|
scriptName = os.path.splitext(os.path.basename(__file__))[0]
|
||||||
scriptName = os.path.splitext(scriptID.split()[1])[0]
|
scriptID = ' '.join([scriptName,damask.version])
|
||||||
|
|
||||||
def operator(stretch,strain,eigenvalues):
|
def operator(stretch,strain,eigenvalues):
|
||||||
''' Albrecht Bertram: Elasticity and Plasticity of Large Deformations An Introduction (3rd Edition, 2012), p. 102 '''
|
''' Albrecht Bertram: Elasticity and Plasticity of Large Deformations An Introduction (3rd Edition, 2012), p. 102 '''
|
||||||
|
|
|
@ -5,8 +5,8 @@ import os,sys,string
|
||||||
from optparse import OptionParser
|
from optparse import OptionParser
|
||||||
import damask
|
import damask
|
||||||
|
|
||||||
scriptID = string.replace('$Id$','\n','\\n')
|
scriptName = os.path.splitext(os.path.basename(__file__))[0]
|
||||||
scriptName = os.path.splitext(scriptID.split()[1])[0]
|
scriptID = ' '.join([scriptName,damask.version])
|
||||||
|
|
||||||
# --------------------------------------------------------------------
|
# --------------------------------------------------------------------
|
||||||
# MAIN
|
# MAIN
|
||||||
|
|
|
@ -7,8 +7,8 @@ import scipy.ndimage
|
||||||
from optparse import OptionParser
|
from optparse import OptionParser
|
||||||
import damask
|
import damask
|
||||||
|
|
||||||
scriptID = string.replace('$Id$','\n','\\n')
|
scriptName = os.path.splitext(os.path.basename(__file__))[0]
|
||||||
scriptName = os.path.splitext(scriptID.split()[1])[0]
|
scriptID = ' '.join([scriptName,damask.version])
|
||||||
|
|
||||||
# --------------------------------------------------------------------
|
# --------------------------------------------------------------------
|
||||||
# MAIN
|
# MAIN
|
||||||
|
|
|
@ -6,8 +6,8 @@ import numpy as np
|
||||||
from optparse import OptionParser
|
from optparse import OptionParser
|
||||||
import damask
|
import damask
|
||||||
|
|
||||||
scriptID = string.replace('$Id$','\n','\\n')
|
scriptName = os.path.splitext(os.path.basename(__file__))[0]
|
||||||
scriptName = os.path.splitext(scriptID.split()[1])[0]
|
scriptID = ' '.join([scriptName,damask.version])
|
||||||
|
|
||||||
# --------------------------------------------------------------------
|
# --------------------------------------------------------------------
|
||||||
# MAIN
|
# MAIN
|
||||||
|
|
|
@ -6,8 +6,8 @@ import numpy as np
|
||||||
from optparse import OptionParser
|
from optparse import OptionParser
|
||||||
import damask
|
import damask
|
||||||
|
|
||||||
scriptID = string.replace('$Id$','\n','\\n')
|
scriptName = os.path.splitext(os.path.basename(__file__))[0]
|
||||||
scriptName = os.path.splitext(scriptID.split()[1])[0]
|
scriptID = ' '.join([scriptName,damask.version])
|
||||||
|
|
||||||
# --------------------------------------------------------------------
|
# --------------------------------------------------------------------
|
||||||
# MAIN
|
# MAIN
|
||||||
|
|
|
@ -6,8 +6,8 @@ import numpy as np
|
||||||
from optparse import OptionParser
|
from optparse import OptionParser
|
||||||
import damask
|
import damask
|
||||||
|
|
||||||
scriptID = string.replace('$Id$','\n','\\n')
|
scriptName = os.path.splitext(os.path.basename(__file__))[0]
|
||||||
scriptName = os.path.splitext(scriptID.split()[1])[0]
|
scriptID = ' '.join([scriptName,damask.version])
|
||||||
|
|
||||||
# --------------------------------------------------------------------
|
# --------------------------------------------------------------------
|
||||||
# MAIN
|
# MAIN
|
||||||
|
|
|
@ -6,8 +6,8 @@ import numpy as np
|
||||||
from optparse import OptionParser
|
from optparse import OptionParser
|
||||||
import damask
|
import damask
|
||||||
|
|
||||||
scriptID = '$Id$'
|
scriptName = os.path.splitext(os.path.basename(__file__))[0]
|
||||||
scriptName = os.path.splitext(scriptID.split()[1])[0]
|
scriptID = ' '.join([scriptName,damask.version])
|
||||||
|
|
||||||
def unravel(item):
|
def unravel(item):
|
||||||
if hasattr(item,'__contains__'): return ' '.join(map(unravel,item))
|
if hasattr(item,'__contains__'): return ' '.join(map(unravel,item))
|
||||||
|
|
|
@ -6,8 +6,8 @@ import numpy as np
|
||||||
from optparse import OptionParser
|
from optparse import OptionParser
|
||||||
import damask
|
import damask
|
||||||
|
|
||||||
scriptID = '$Id$'
|
scriptName = os.path.splitext(os.path.basename(__file__))[0]
|
||||||
scriptName = os.path.splitext(scriptID.split()[1])[0]
|
scriptID = ' '.join([scriptName,damask.version])
|
||||||
|
|
||||||
def sortingList(labels,whitelistitems):
|
def sortingList(labels,whitelistitems):
|
||||||
|
|
||||||
|
|
|
@ -7,8 +7,8 @@ from optparse import OptionParser
|
||||||
from PIL import Image
|
from PIL import Image
|
||||||
import damask
|
import damask
|
||||||
|
|
||||||
scriptID = string.replace('$Id$','\n','\\n')
|
scriptName = os.path.splitext(os.path.basename(__file__))[0]
|
||||||
scriptName = os.path.splitext(scriptID.split()[1])[0]
|
scriptID = ' '.join([scriptName,damask.version])
|
||||||
|
|
||||||
# --------------------------------------------------------------------
|
# --------------------------------------------------------------------
|
||||||
# MAIN
|
# MAIN
|
||||||
|
|
|
@ -7,8 +7,8 @@ from optparse import OptionParser
|
||||||
from PIL import Image, ImageDraw
|
from PIL import Image, ImageDraw
|
||||||
import damask
|
import damask
|
||||||
|
|
||||||
scriptID = string.replace('$Id$','\n','\\n')
|
scriptName = os.path.splitext(os.path.basename(__file__))[0]
|
||||||
scriptName = os.path.splitext(scriptID.split()[1])[0]
|
scriptID = ' '.join([scriptName,damask.version])
|
||||||
|
|
||||||
# --------------------------------------------------------------------
|
# --------------------------------------------------------------------
|
||||||
# MAIN
|
# MAIN
|
||||||
|
|
|
@ -7,8 +7,8 @@ from optparse import OptionParser
|
||||||
from PIL import Image
|
from PIL import Image
|
||||||
import damask
|
import damask
|
||||||
|
|
||||||
scriptID = string.replace('$Id$','\n','\\n')
|
scriptName = os.path.splitext(os.path.basename(__file__))[0]
|
||||||
scriptName = os.path.splitext(scriptID.split()[1])[0]
|
scriptID = ' '.join([scriptName,damask.version])
|
||||||
|
|
||||||
# --------------------------------------------------------------------
|
# --------------------------------------------------------------------
|
||||||
# MAIN
|
# MAIN
|
||||||
|
|
|
@ -6,8 +6,8 @@ import numpy as np
|
||||||
import damask
|
import damask
|
||||||
from optparse import OptionParser
|
from optparse import OptionParser
|
||||||
|
|
||||||
scriptID = '$Id$'
|
scriptName = os.path.splitext(os.path.basename(__file__))[0]
|
||||||
scriptName = os.path.splitext(scriptID.split()[1])[0]
|
scriptID = ' '.join([scriptName,damask.version])
|
||||||
|
|
||||||
# -----------------------------
|
# -----------------------------
|
||||||
# MAIN FUNCTION STARTS HERE
|
# MAIN FUNCTION STARTS HERE
|
||||||
|
|
|
@ -5,8 +5,8 @@ import os,sys,string,re,time
|
||||||
from optparse import OptionParser, OptionGroup
|
from optparse import OptionParser, OptionGroup
|
||||||
import damask
|
import damask
|
||||||
|
|
||||||
scriptID = string.replace('$Id$','\n','\\n')
|
scriptName = os.path.splitext(os.path.basename(__file__))[0]
|
||||||
scriptName = os.path.splitext(scriptID.split()[1])[0]
|
scriptID = ' '.join([scriptName,damask.version])
|
||||||
|
|
||||||
# -----------------------------
|
# -----------------------------
|
||||||
def ParseOutputFormat(filename,homogID,crystID,phaseID):
|
def ParseOutputFormat(filename,homogID,crystID,phaseID):
|
||||||
|
|
|
@ -5,8 +5,8 @@ import os, sys, string
|
||||||
import damask
|
import damask
|
||||||
from optparse import OptionParser
|
from optparse import OptionParser
|
||||||
|
|
||||||
scriptID = string.replace('$Id$','\n','\\n')
|
scriptName = os.path.splitext(os.path.basename(__file__))[0]
|
||||||
scriptName = os.path.splitext(scriptID.split()[1])[0]
|
scriptID = ' '.join([scriptName,damask.version])
|
||||||
|
|
||||||
# -----------------------------
|
# -----------------------------
|
||||||
def outMentat(cmd,locals):
|
def outMentat(cmd,locals):
|
||||||
|
|
|
@ -5,8 +5,8 @@ import string,sys,os
|
||||||
import damask
|
import damask
|
||||||
from optparse import OptionParser
|
from optparse import OptionParser
|
||||||
|
|
||||||
scriptID = string.replace('$Id$','\n','\\n')
|
scriptName = os.path.splitext(os.path.basename(__file__))[0]
|
||||||
scriptName = os.path.splitext(scriptID.split()[1])[0]
|
scriptID = ' '.join([scriptName,damask.version])
|
||||||
|
|
||||||
# --------------------------------------------------------------------
|
# --------------------------------------------------------------------
|
||||||
# MAIN
|
# MAIN
|
||||||
|
|
|
@ -6,8 +6,8 @@ import numpy as np
|
||||||
from optparse import OptionParser
|
from optparse import OptionParser
|
||||||
import damask
|
import damask
|
||||||
|
|
||||||
scriptID = string.replace('$Id$','\n','\\n')
|
scriptName = os.path.splitext(os.path.basename(__file__))[0]
|
||||||
scriptName = os.path.splitext(scriptID.split()[1])[0]
|
scriptID = ' '.join([scriptName,damask.version])
|
||||||
|
|
||||||
# --------------------------------------------------------------------
|
# --------------------------------------------------------------------
|
||||||
# MAIN
|
# MAIN
|
||||||
|
|
|
@ -5,8 +5,8 @@ import os,sys,math,re,threading,time,struct,string
|
||||||
import damask
|
import damask
|
||||||
from optparse import OptionParser, OptionGroup
|
from optparse import OptionParser, OptionGroup
|
||||||
|
|
||||||
scriptID = string.replace('$Id$','\n','\\n')
|
scriptName = os.path.splitext(os.path.basename(__file__))[0]
|
||||||
scriptName = os.path.splitext(scriptID.split()[1])[0]
|
scriptID = ' '.join([scriptName,damask.version])
|
||||||
|
|
||||||
|
|
||||||
fileExtensions = { \
|
fileExtensions = { \
|
||||||
|
|
|
@ -5,8 +5,8 @@ import os,sys,string
|
||||||
import damask
|
import damask
|
||||||
from optparse import OptionParser
|
from optparse import OptionParser
|
||||||
|
|
||||||
scriptID = string.replace('$Id$','\n','\\n')
|
scriptName = os.path.splitext(os.path.basename(__file__))[0]
|
||||||
scriptName = os.path.splitext(scriptID.split()[1])[0]
|
scriptID = ' '.join([scriptName,damask.version])
|
||||||
|
|
||||||
# --------------------------------------------------------------------
|
# --------------------------------------------------------------------
|
||||||
# MAIN
|
# MAIN
|
||||||
|
|
|
@ -6,8 +6,8 @@ import numpy as np
|
||||||
from optparse import OptionParser
|
from optparse import OptionParser
|
||||||
import damask
|
import damask
|
||||||
|
|
||||||
scriptID = string.replace('$Id$','\n','\\n')
|
scriptName = os.path.splitext(os.path.basename(__file__))[0]
|
||||||
scriptName = os.path.splitext(scriptID.split()[1])[0]
|
scriptID = ' '.join([scriptName,damask.version])
|
||||||
|
|
||||||
# --------------------------------------------------------------------
|
# --------------------------------------------------------------------
|
||||||
# MAIN
|
# MAIN
|
||||||
|
|
|
@ -6,8 +6,8 @@ import numpy as np
|
||||||
from optparse import OptionParser
|
from optparse import OptionParser
|
||||||
import damask
|
import damask
|
||||||
|
|
||||||
scriptID = '$Id$'
|
scriptName = os.path.splitext(os.path.basename(__file__))[0]
|
||||||
scriptName = os.path.splitext(scriptID.split()[1])[0]
|
scriptID = ' '.join([scriptName,damask.version])
|
||||||
|
|
||||||
# --------------------------------------------------------------------
|
# --------------------------------------------------------------------
|
||||||
# MAIN
|
# MAIN
|
||||||
|
|
|
@ -6,8 +6,8 @@ import numpy as np
|
||||||
from optparse import OptionParser
|
from optparse import OptionParser
|
||||||
import damask
|
import damask
|
||||||
|
|
||||||
scriptID = '$Id$'
|
scriptName = os.path.splitext(os.path.basename(__file__))[0]
|
||||||
scriptName = os.path.splitext(scriptID.split()[1])[0]
|
scriptID = ' '.join([scriptName,damask.version])
|
||||||
|
|
||||||
# --------------------------------------------------------------------
|
# --------------------------------------------------------------------
|
||||||
# MAIN
|
# MAIN
|
||||||
|
|
|
@ -5,8 +5,8 @@ import os
|
||||||
from optparse import OptionParser
|
from optparse import OptionParser
|
||||||
import damask
|
import damask
|
||||||
|
|
||||||
scriptID = '$Id$'
|
scriptName = os.path.splitext(os.path.basename(__file__))[0]
|
||||||
scriptName = os.path.splitext(scriptID.split()[1])[0]
|
scriptID = ' '.join([scriptName,damask.version])
|
||||||
|
|
||||||
# --------------------------------------------------------------------
|
# --------------------------------------------------------------------
|
||||||
# MAIN
|
# MAIN
|
||||||
|
|
|
@ -6,8 +6,8 @@ import numpy as np
|
||||||
from optparse import OptionParser
|
from optparse import OptionParser
|
||||||
import damask
|
import damask
|
||||||
|
|
||||||
scriptID = string.replace('$Id$','\n','\\n')
|
scriptName = os.path.splitext(os.path.basename(__file__))[0]
|
||||||
scriptName = os.path.splitext(scriptID.split()[1])[0]
|
scriptID = ' '.join([scriptName,damask.version])
|
||||||
|
|
||||||
# --------------------------------------------------------------------
|
# --------------------------------------------------------------------
|
||||||
# MAIN
|
# MAIN
|
||||||
|
|
|
@ -6,8 +6,8 @@ import numpy as np
|
||||||
import damask
|
import damask
|
||||||
from optparse import OptionParser
|
from optparse import OptionParser
|
||||||
|
|
||||||
scriptID = string.replace('$Id$','\n','\\n')
|
scriptName = os.path.splitext(os.path.basename(__file__))[0]
|
||||||
scriptName = os.path.splitext(scriptID.split()[1])[0]
|
scriptID = ' '.join([scriptName,damask.version])
|
||||||
|
|
||||||
# --------------------------------------------------------------------
|
# --------------------------------------------------------------------
|
||||||
# MAIN
|
# MAIN
|
||||||
|
|
|
@ -6,8 +6,8 @@ import numpy as np
|
||||||
from optparse import OptionParser
|
from optparse import OptionParser
|
||||||
from vtk import *
|
from vtk import *
|
||||||
|
|
||||||
scriptID = string.replace('$Id$','\n','\\n')
|
scriptName = os.path.splitext(os.path.basename(__file__))[0]
|
||||||
scriptName = os.path.splitext(scriptID.split()[1])[0]
|
scriptID = ' '.join([scriptName,damask.version])
|
||||||
|
|
||||||
# -----------------------------
|
# -----------------------------
|
||||||
def getHeader(filename,sizeFastIndex,sizeSlowIndex,stepsize):
|
def getHeader(filename,sizeFastIndex,sizeSlowIndex,stepsize):
|
||||||
|
|
|
@ -5,8 +5,8 @@ import os,string,glob,re
|
||||||
import damask
|
import damask
|
||||||
from optparse import OptionParser
|
from optparse import OptionParser
|
||||||
|
|
||||||
scriptID = string.replace('$Id$','\n','\\n')
|
scriptName = os.path.splitext(os.path.basename(__file__))[0]
|
||||||
scriptName = os.path.splitext(scriptID.split()[1])[0]
|
scriptID = ' '.join([scriptName,damask.version])
|
||||||
|
|
||||||
# -----------------------------
|
# -----------------------------
|
||||||
def findTag(filename,tag):
|
def findTag(filename,tag):
|
||||||
|
|
|
@ -5,8 +5,8 @@ import os,sys,string,vtk
|
||||||
import damask
|
import damask
|
||||||
from optparse import OptionParser
|
from optparse import OptionParser
|
||||||
|
|
||||||
scriptID = string.replace('$Id$','\n','\\n')
|
scriptName = os.path.splitext(os.path.basename(__file__))[0]
|
||||||
scriptName = os.path.splitext(scriptID.split()[1])[0]
|
scriptID = ' '.join([scriptName,damask.version])
|
||||||
|
|
||||||
# --------------------------------------------------------------------
|
# --------------------------------------------------------------------
|
||||||
# MAIN
|
# MAIN
|
||||||
|
|
|
@ -6,8 +6,8 @@ import damask
|
||||||
from collections import defaultdict
|
from collections import defaultdict
|
||||||
from optparse import OptionParser
|
from optparse import OptionParser
|
||||||
|
|
||||||
scriptID = string.replace('$Id$','\n','\\n')
|
scriptName = os.path.splitext(os.path.basename(__file__))[0]
|
||||||
scriptName = os.path.splitext(scriptID.split()[1])[0]
|
scriptID = ' '.join([scriptName,damask.version])
|
||||||
|
|
||||||
# --------------------------------------------------------------------
|
# --------------------------------------------------------------------
|
||||||
# MAIN
|
# MAIN
|
||||||
|
|
|
@ -6,8 +6,8 @@ import damask
|
||||||
from collections import defaultdict
|
from collections import defaultdict
|
||||||
from optparse import OptionParser
|
from optparse import OptionParser
|
||||||
|
|
||||||
scriptID = string.replace('$Id$','\n','\\n')
|
scriptName = os.path.splitext(os.path.basename(__file__))[0]
|
||||||
scriptName = os.path.splitext(scriptID.split()[1])[0]
|
scriptID = ' '.join([scriptName,damask.version])
|
||||||
|
|
||||||
# --------------------------------------------------------------------
|
# --------------------------------------------------------------------
|
||||||
# MAIN
|
# MAIN
|
||||||
|
|
|
@ -6,8 +6,8 @@ import numpy as np
|
||||||
import damask
|
import damask
|
||||||
from optparse import OptionParser
|
from optparse import OptionParser
|
||||||
|
|
||||||
scriptID = string.replace('$Id$','\n','\\n')
|
scriptName = os.path.splitext(os.path.basename(__file__))[0]
|
||||||
scriptName = os.path.splitext(scriptID.split()[1])[0]
|
scriptID = ' '.join([scriptName,damask.version])
|
||||||
|
|
||||||
# --------------------------------------------------------------------
|
# --------------------------------------------------------------------
|
||||||
# MAIN
|
# MAIN
|
||||||
|
|
|
@ -7,8 +7,8 @@ import damask
|
||||||
from optparse import OptionParser
|
from optparse import OptionParser
|
||||||
|
|
||||||
|
|
||||||
scriptID = '$Id$'
|
scriptName = os.path.splitext(os.path.basename(__file__))[0]
|
||||||
scriptName = os.path.splitext(scriptID.split()[1])[0]
|
scriptID = ' '.join([scriptName,damask.version])
|
||||||
|
|
||||||
# --------------------------------------------------------------------
|
# --------------------------------------------------------------------
|
||||||
# MAIN
|
# MAIN
|
||||||
|
|
|
@ -6,8 +6,8 @@ import damask
|
||||||
from optparse import OptionParser
|
from optparse import OptionParser
|
||||||
from vtk import *
|
from vtk import *
|
||||||
|
|
||||||
scriptID = string.replace('$Id$','\n','\\n')
|
scriptName = os.path.splitext(os.path.basename(__file__))[0]
|
||||||
scriptName = os.path.splitext(scriptID.split()[1])[0]
|
scriptID = ' '.join([scriptName,damask.version])
|
||||||
|
|
||||||
# --------------------------------------------------------------------
|
# --------------------------------------------------------------------
|
||||||
# MAIN
|
# MAIN
|
||||||
|
|
|
@ -6,8 +6,8 @@ import numpy as np
|
||||||
from optparse import OptionParser
|
from optparse import OptionParser
|
||||||
import damask
|
import damask
|
||||||
|
|
||||||
scriptID = '$Id$'
|
scriptName = os.path.splitext(os.path.basename(__file__))[0]
|
||||||
scriptName = os.path.splitext(scriptID.split()[1])[0]
|
scriptID = ' '.join([scriptName,damask.version])
|
||||||
|
|
||||||
|
|
||||||
# --------------------------------------------------------------------
|
# --------------------------------------------------------------------
|
||||||
|
|
|
@ -6,8 +6,8 @@ from optparse import OptionParser
|
||||||
import numpy as np
|
import numpy as np
|
||||||
import damask
|
import damask
|
||||||
|
|
||||||
scriptID = string.replace('$Id$','\n','\\n')
|
scriptName = os.path.splitext(os.path.basename(__file__))[0]
|
||||||
scriptName = scriptID.split()[1]
|
scriptID = ' '.join([scriptName,damask.version])
|
||||||
|
|
||||||
sampleSym = { 'Orthotropic' : (90,90,90),
|
sampleSym = { 'Orthotropic' : (90,90,90),
|
||||||
'Triclinic' : (360,180,360)
|
'Triclinic' : (360,180,360)
|
||||||
|
|
|
@ -14,8 +14,8 @@ import sys,os,re,string
|
||||||
from optparse import OptionParser
|
from optparse import OptionParser
|
||||||
import damask
|
import damask
|
||||||
|
|
||||||
scriptID = string.replace('$Id$','\n','\\n')
|
scriptName = os.path.splitext(os.path.basename(__file__))[0]
|
||||||
scriptName = os.path.splitext(scriptID.split()[1])[0]
|
scriptID = ' '.join([scriptName,damask.version])
|
||||||
|
|
||||||
# -----------------------------
|
# -----------------------------
|
||||||
def ParseOutputFormat(filename,what,me):
|
def ParseOutputFormat(filename,what,me):
|
||||||
|
|
|
@ -6,8 +6,8 @@ import numpy as np
|
||||||
from optparse import OptionParser
|
from optparse import OptionParser
|
||||||
import damask
|
import damask
|
||||||
|
|
||||||
scriptID = string.replace('$Id$','\n','\\n')
|
scriptName = os.path.splitext(os.path.basename(__file__))[0]
|
||||||
scriptName = os.path.splitext(scriptID.split()[1])[0]
|
scriptID = ' '.join([scriptName,damask.version])
|
||||||
|
|
||||||
oversampling = 2.
|
oversampling = 2.
|
||||||
|
|
||||||
|
|
|
@ -6,8 +6,8 @@ import numpy as np
|
||||||
from optparse import OptionParser
|
from optparse import OptionParser
|
||||||
import damask
|
import damask
|
||||||
|
|
||||||
scriptID = string.replace('$Id$','\n','\\n')
|
scriptName = os.path.splitext(os.path.basename(__file__))[0]
|
||||||
scriptName = os.path.splitext(scriptID.split()[1])[0]
|
scriptID = ' '.join([scriptName,damask.version])
|
||||||
|
|
||||||
# --------------------------------------------------------------------
|
# --------------------------------------------------------------------
|
||||||
# MAIN
|
# MAIN
|
||||||
|
|
|
@ -6,8 +6,8 @@ import numpy as np
|
||||||
from optparse import OptionParser
|
from optparse import OptionParser
|
||||||
import damask
|
import damask
|
||||||
|
|
||||||
scriptID = string.replace('$Id$','\n','\\n')
|
scriptName = os.path.splitext(os.path.basename(__file__))[0]
|
||||||
scriptName = os.path.splitext(scriptID.split()[1])[0]
|
scriptID = ' '.join([scriptName,damask.version])
|
||||||
|
|
||||||
#--------------------------------------------------------------------------------------------------
|
#--------------------------------------------------------------------------------------------------
|
||||||
# MAIN
|
# MAIN
|
||||||
|
|
|
@ -8,8 +8,8 @@ from scipy import ndimage
|
||||||
from optparse import OptionParser
|
from optparse import OptionParser
|
||||||
from collections import defaultdict
|
from collections import defaultdict
|
||||||
|
|
||||||
scriptID = string.replace('$Id$','\n','\\n')
|
scriptName = os.path.splitext(os.path.basename(__file__))[0]
|
||||||
scriptName = os.path.splitext(scriptID.split()[1])[0]
|
scriptID = ' '.join([scriptName,damask.version])
|
||||||
|
|
||||||
def mostFrequent(arr):
|
def mostFrequent(arr):
|
||||||
d = defaultdict(int)
|
d = defaultdict(int)
|
||||||
|
|
|
@ -6,8 +6,8 @@ import numpy as np
|
||||||
from optparse import OptionParser
|
from optparse import OptionParser
|
||||||
import damask
|
import damask
|
||||||
|
|
||||||
scriptID = string.replace('$Id$','\n','\\n')
|
scriptName = os.path.splitext(os.path.basename(__file__))[0]
|
||||||
scriptName = os.path.splitext(scriptID.split()[1])[0]
|
scriptID = ' '.join([scriptName,damask.version])
|
||||||
|
|
||||||
#--------------------------------------------------------------------------------------------------
|
#--------------------------------------------------------------------------------------------------
|
||||||
# MAIN
|
# MAIN
|
||||||
|
|
|
@ -15,8 +15,8 @@ import numpy as np
|
||||||
import argparse
|
import argparse
|
||||||
from scipy.spatial import Delaunay
|
from scipy.spatial import Delaunay
|
||||||
|
|
||||||
scriptID = string.replace('$Id$','\n','\\n')
|
scriptName = os.path.splitext(os.path.basename(__file__))[0]
|
||||||
scriptName = os.path.splitext(scriptID.split()[1])[0]
|
scriptID = ' '.join([scriptName,damask.version])
|
||||||
|
|
||||||
|
|
||||||
OFFSET = 0.1 #resize the seeded volume to give space for rim/pan
|
OFFSET = 0.1 #resize the seeded volume to give space for rim/pan
|
||||||
|
|
|
@ -7,8 +7,8 @@ from scipy import ndimage
|
||||||
from optparse import OptionParser
|
from optparse import OptionParser
|
||||||
import damask
|
import damask
|
||||||
|
|
||||||
scriptID = string.replace('$Id$','\n','\\n')
|
scriptName = os.path.splitext(os.path.basename(__file__))[0]
|
||||||
scriptName = os.path.splitext(scriptID.split()[1])[0]
|
scriptID = ' '.join([scriptName,damask.version])
|
||||||
|
|
||||||
def periodic_3Dpad(array, rimdim=(1,1,1)):
|
def periodic_3Dpad(array, rimdim=(1,1,1)):
|
||||||
|
|
||||||
|
|
|
@ -7,8 +7,8 @@ from optparse import OptionParser
|
||||||
from PIL import Image,ImageOps
|
from PIL import Image,ImageOps
|
||||||
import damask
|
import damask
|
||||||
|
|
||||||
scriptID = string.replace('$Id$','\n','\\n')
|
scriptName = os.path.splitext(os.path.basename(__file__))[0]
|
||||||
scriptName = os.path.splitext(scriptID.split()[1])[0]
|
scriptID = ' '.join([scriptName,damask.version])
|
||||||
|
|
||||||
#--------------------------------------------------------------------------------------------------
|
#--------------------------------------------------------------------------------------------------
|
||||||
# MAIN
|
# MAIN
|
||||||
|
|
|
@ -6,8 +6,8 @@ import numpy as np
|
||||||
from optparse import OptionParser
|
from optparse import OptionParser
|
||||||
import damask
|
import damask
|
||||||
|
|
||||||
scriptID = string.replace('$Id$','\n','\\n')
|
scriptName = os.path.splitext(os.path.basename(__file__))[0]
|
||||||
scriptName = os.path.splitext(scriptID.split()[1])[0]
|
scriptID = ' '.join([scriptName,damask.version])
|
||||||
|
|
||||||
# --------------------------------------------------------------------
|
# --------------------------------------------------------------------
|
||||||
# MAIN
|
# MAIN
|
||||||
|
|
|
@ -6,8 +6,8 @@ import numpy as np
|
||||||
from optparse import OptionParser
|
from optparse import OptionParser
|
||||||
import damask
|
import damask
|
||||||
|
|
||||||
scriptID = string.replace('$Id$','\n','\\n')
|
scriptName = os.path.splitext(os.path.basename(__file__))[0]
|
||||||
scriptName = os.path.splitext(scriptID.split()[1])[0]
|
scriptID = ' '.join([scriptName,damask.version])
|
||||||
|
|
||||||
# --------------------------------------------------------------------
|
# --------------------------------------------------------------------
|
||||||
# MAIN
|
# MAIN
|
||||||
|
|
|
@ -6,8 +6,8 @@ import scipy.spatial, numpy as np
|
||||||
from optparse import OptionParser
|
from optparse import OptionParser
|
||||||
import damask
|
import damask
|
||||||
|
|
||||||
scriptID = string.replace('$Id$','\n','\\n')
|
scriptName = os.path.splitext(os.path.basename(__file__))[0]
|
||||||
scriptName = os.path.splitext(scriptID.split()[1])[0]
|
scriptID = ' '.join([scriptName,damask.version])
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -6,8 +6,8 @@ import numpy as np
|
||||||
from optparse import OptionParser
|
from optparse import OptionParser
|
||||||
import damask
|
import damask
|
||||||
|
|
||||||
scriptID = string.replace('$Id$','\n','\\n')
|
scriptName = os.path.splitext(os.path.basename(__file__))[0]
|
||||||
scriptName = os.path.splitext(scriptID.split()[1])[0]
|
scriptID = ' '.join([scriptName,damask.version])
|
||||||
|
|
||||||
#--------------------------------------------------------------------------------------------------
|
#--------------------------------------------------------------------------------------------------
|
||||||
# MAIN
|
# MAIN
|
||||||
|
|
|
@ -8,8 +8,8 @@ from optparse import OptionParser
|
||||||
from scipy import spatial
|
from scipy import spatial
|
||||||
import damask
|
import damask
|
||||||
|
|
||||||
scriptID = string.replace('$Id$','\n','\\n')
|
scriptName = os.path.splitext(os.path.basename(__file__))[0]
|
||||||
scriptName = os.path.splitext(scriptID.split()[1])[0]
|
scriptID = ' '.join([scriptName,damask.version])
|
||||||
|
|
||||||
|
|
||||||
def meshgrid2(*arrs):
|
def meshgrid2(*arrs):
|
||||||
|
|
|
@ -7,8 +7,8 @@ from optparse import OptionParser
|
||||||
from scipy import ndimage
|
from scipy import ndimage
|
||||||
import damask
|
import damask
|
||||||
|
|
||||||
scriptID = string.replace('$Id$','\n','\\n')
|
scriptName = os.path.splitext(os.path.basename(__file__))[0]
|
||||||
scriptName = os.path.splitext(scriptID.split()[1])[0]
|
scriptID = ' '.join([scriptName,damask.version])
|
||||||
|
|
||||||
#--------------------------------------------------------------------------------------------------
|
#--------------------------------------------------------------------------------------------------
|
||||||
# MAIN
|
# MAIN
|
||||||
|
|
|
@ -6,8 +6,8 @@ import numpy as np
|
||||||
from optparse import OptionParser
|
from optparse import OptionParser
|
||||||
import damask
|
import damask
|
||||||
|
|
||||||
scriptID = string.replace('$Id$','\n','\\n')
|
scriptName = os.path.splitext(os.path.basename(__file__))[0]
|
||||||
scriptName = os.path.splitext(scriptID.split()[1])[0]
|
scriptID = ' '.join([scriptName,damask.version])
|
||||||
|
|
||||||
#--------------------------------------------------------------------------------------------------
|
#--------------------------------------------------------------------------------------------------
|
||||||
# MAIN
|
# MAIN
|
||||||
|
|
|
@ -6,8 +6,8 @@ import numpy as np
|
||||||
from optparse import OptionParser
|
from optparse import OptionParser
|
||||||
import damask
|
import damask
|
||||||
|
|
||||||
scriptID = string.replace('$Id$','\n','\\n')
|
scriptName = os.path.splitext(os.path.basename(__file__))[0]
|
||||||
scriptName = os.path.splitext(scriptID.split()[1])[0]
|
scriptID = ' '.join([scriptName,damask.version])
|
||||||
|
|
||||||
#--------------------------------------------------------------------------------------------------
|
#--------------------------------------------------------------------------------------------------
|
||||||
# MAIN
|
# MAIN
|
||||||
|
|
|
@ -7,8 +7,8 @@ import damask
|
||||||
from scipy import ndimage
|
from scipy import ndimage
|
||||||
from optparse import OptionParser
|
from optparse import OptionParser
|
||||||
|
|
||||||
scriptID = string.replace('$Id$','\n','\\n')
|
scriptName = os.path.splitext(os.path.basename(__file__))[0]
|
||||||
scriptName = os.path.splitext(scriptID.split()[1])[0]
|
scriptID = ' '.join([scriptName,damask.version])
|
||||||
|
|
||||||
#--------------------------------------------------------------------------------------------------
|
#--------------------------------------------------------------------------------------------------
|
||||||
# MAIN
|
# MAIN
|
||||||
|
|
|
@ -6,8 +6,8 @@ import numpy as np
|
||||||
from optparse import OptionParser
|
from optparse import OptionParser
|
||||||
import damask
|
import damask
|
||||||
|
|
||||||
scriptID = string.replace('$Id$','\n','\\n')
|
scriptName = os.path.splitext(os.path.basename(__file__))[0]
|
||||||
scriptName = os.path.splitext(scriptID.split()[1])[0]
|
scriptID = ' '.join([scriptName,damask.version])
|
||||||
|
|
||||||
|
|
||||||
#--------------------------------------------------------------------------------------------------
|
#--------------------------------------------------------------------------------------------------
|
||||||
|
|
|
@ -6,8 +6,8 @@ import numpy as np
|
||||||
import damask
|
import damask
|
||||||
from optparse import OptionParser
|
from optparse import OptionParser
|
||||||
|
|
||||||
scriptID = string.replace('$Id$','\n','\\n')
|
scriptName = os.path.splitext(os.path.basename(__file__))[0]
|
||||||
scriptName = os.path.splitext(scriptID.split()[1])[0]
|
scriptID = ' '.join([scriptName,damask.version])
|
||||||
|
|
||||||
#--------------------------------------------------------------------------------------------------
|
#--------------------------------------------------------------------------------------------------
|
||||||
# MAIN
|
# MAIN
|
||||||
|
|
|
@ -6,8 +6,8 @@ import numpy as np
|
||||||
from optparse import OptionParser
|
from optparse import OptionParser
|
||||||
import damask
|
import damask
|
||||||
|
|
||||||
scriptID = string.replace('$Id$','\n','\\n')
|
scriptName = os.path.splitext(os.path.basename(__file__))[0]
|
||||||
scriptName = os.path.splitext(scriptID.split()[1])[0]
|
scriptID = ' '.join([scriptName,damask.version])
|
||||||
|
|
||||||
#--------------------------------------------------------------------------------------------------
|
#--------------------------------------------------------------------------------------------------
|
||||||
# MAIN
|
# MAIN
|
||||||
|
|
|
@ -7,8 +7,8 @@ from scipy import ndimage
|
||||||
from optparse import OptionParser
|
from optparse import OptionParser
|
||||||
import damask
|
import damask
|
||||||
|
|
||||||
scriptID = string.replace('$Id$','\n','\\n')
|
scriptName = os.path.splitext(os.path.basename(__file__))[0]
|
||||||
scriptName = os.path.splitext(scriptID.split()[1])[0]
|
scriptID = ' '.join([scriptName,damask.version])
|
||||||
|
|
||||||
#--------------------------------------------------------------------------------------------------
|
#--------------------------------------------------------------------------------------------------
|
||||||
# MAIN
|
# MAIN
|
||||||
|
|
|
@ -5,8 +5,8 @@ import os,string,re
|
||||||
from optparse import OptionParser
|
from optparse import OptionParser
|
||||||
import damask
|
import damask
|
||||||
|
|
||||||
scriptID = string.replace('$Id$','\n','\\n')
|
scriptName = os.path.splitext(os.path.basename(__file__))[0]
|
||||||
scriptName = os.path.splitext(scriptID.split()[1])[0]
|
scriptID = ' '.join([scriptName,damask.version])
|
||||||
|
|
||||||
def all_same(items,a):
|
def all_same(items,a):
|
||||||
return all(x == a for x in items)
|
return all(x == a for x in items)
|
||||||
|
|
|
@ -6,8 +6,8 @@ import damask
|
||||||
import os,sys,math,re,random,string
|
import os,sys,math,re,random,string
|
||||||
import numpy as np
|
import numpy as np
|
||||||
|
|
||||||
scriptID = string.replace('$Id$','\n','\\n')
|
scriptName = os.path.splitext(os.path.basename(__file__))[0]
|
||||||
scriptName = os.path.splitext(scriptID.split()[1])[0]
|
scriptID = ' '.join([scriptName,damask.version])
|
||||||
|
|
||||||
|
|
||||||
# --- helper functions ---
|
# --- helper functions ---
|
||||||
|
|
|
@ -11,8 +11,8 @@ import sys,os,re,string
|
||||||
from optparse import OptionParser
|
from optparse import OptionParser
|
||||||
import damask
|
import damask
|
||||||
|
|
||||||
scriptID = string.replace('$Id$','\n','\\n')
|
scriptName = os.path.splitext(os.path.basename(__file__))[0]
|
||||||
scriptName = os.path.splitext(scriptID.split()[1])[0]
|
scriptID = ' '.join([scriptName,damask.version])
|
||||||
|
|
||||||
# -----------------------------
|
# -----------------------------
|
||||||
def ParseOutputFormat(filename,what,me):
|
def ParseOutputFormat(filename,what,me):
|
||||||
|
|
|
@ -6,8 +6,8 @@ import numpy as np
|
||||||
from optparse import OptionParser
|
from optparse import OptionParser
|
||||||
import damask
|
import damask
|
||||||
|
|
||||||
scriptID = string.replace('$Id$','\n','\\n')
|
scriptName = os.path.splitext(os.path.basename(__file__))[0]
|
||||||
scriptName = os.path.splitext(scriptID.split()[1])[0]
|
scriptID = ' '.join([scriptName,damask.version])
|
||||||
|
|
||||||
sys.path.append(damask.solver.Marc().libraryPath('../../'))
|
sys.path.append(damask.solver.Marc().libraryPath('../../'))
|
||||||
|
|
||||||
|
|
|
@ -6,8 +6,8 @@ import numpy as np
|
||||||
from optparse import OptionParser
|
from optparse import OptionParser
|
||||||
import damask
|
import damask
|
||||||
|
|
||||||
scriptID = string.replace('$Id$','\n','\\n')
|
scriptName = os.path.splitext(os.path.basename(__file__))[0]
|
||||||
scriptName = os.path.splitext(scriptID.split()[1])[0]
|
scriptID = ' '.join([scriptName,damask.version])
|
||||||
sys.path.append(damask.solver.Marc().libraryPath('../../'))
|
sys.path.append(damask.solver.Marc().libraryPath('../../'))
|
||||||
|
|
||||||
#-------------------------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------------------------
|
||||||
|
|
|
@ -5,8 +5,8 @@ import sys,os,math,re,string
|
||||||
from optparse import OptionParser
|
from optparse import OptionParser
|
||||||
import damask
|
import damask
|
||||||
|
|
||||||
scriptID = string.replace('$Id$','\n','\\n')
|
scriptName = os.path.splitext(os.path.basename(__file__))[0]
|
||||||
scriptName = os.path.splitext(scriptID.split()[1])[0]
|
scriptID = ' '.join([scriptName,damask.version])
|
||||||
|
|
||||||
|
|
||||||
try: # check for Python Image Lib
|
try: # check for Python Image Lib
|
||||||
|
|
|
@ -6,8 +6,8 @@ import numpy as np
|
||||||
import damask
|
import damask
|
||||||
from optparse import OptionParser
|
from optparse import OptionParser
|
||||||
|
|
||||||
scriptID = string.replace('$Id$','\n','\\n')
|
scriptName = os.path.splitext(os.path.basename(__file__))[0]
|
||||||
scriptName = os.path.splitext(scriptID.split()[1])[0]
|
scriptID = ' '.join([scriptName,damask.version])
|
||||||
|
|
||||||
#--------------------------------------------------------------------------------------------------
|
#--------------------------------------------------------------------------------------------------
|
||||||
# MAIN
|
# MAIN
|
||||||
|
|
|
@ -8,8 +8,8 @@ from operator import mul
|
||||||
from cStringIO import StringIO
|
from cStringIO import StringIO
|
||||||
import damask
|
import damask
|
||||||
|
|
||||||
scriptID = string.replace('$Id$','\n','\\n')
|
scriptName = os.path.splitext(os.path.basename(__file__))[0]
|
||||||
scriptName = os.path.splitext(scriptID.split()[1])[0]
|
scriptID = ' '.join([scriptName,damask.version])
|
||||||
|
|
||||||
mismatch = None
|
mismatch = None
|
||||||
currentSeedsName = None
|
currentSeedsName = None
|
||||||
|
|
|
@ -6,8 +6,8 @@ import numpy as np
|
||||||
from optparse import OptionParser
|
from optparse import OptionParser
|
||||||
import damask
|
import damask
|
||||||
|
|
||||||
scriptID = string.replace('$Id$','\n','\\n')
|
scriptName = os.path.splitext(os.path.basename(__file__))[0]
|
||||||
scriptName = os.path.splitext(scriptID.split()[1])[0]
|
scriptID = ' '.join([scriptName,damask.version])
|
||||||
|
|
||||||
#--------------------------------------------------------------------------------------------------
|
#--------------------------------------------------------------------------------------------------
|
||||||
# MAIN
|
# MAIN
|
||||||
|
|
|
@ -6,8 +6,8 @@ import numpy as np
|
||||||
import damask
|
import damask
|
||||||
from optparse import OptionParser
|
from optparse import OptionParser
|
||||||
|
|
||||||
scriptID = '$Id$'
|
scriptName = os.path.splitext(os.path.basename(__file__))[0]
|
||||||
scriptName = scriptID.split()[1]
|
scriptID = ' '.join([scriptName,damask.version])
|
||||||
|
|
||||||
# --------------------------------------------------------------------
|
# --------------------------------------------------------------------
|
||||||
# MAIN
|
# MAIN
|
||||||
|
|
|
@ -8,8 +8,8 @@ from optparse import OptionParser,OptionGroup
|
||||||
from scipy import spatial
|
from scipy import spatial
|
||||||
|
|
||||||
|
|
||||||
scriptID = string.replace('$Id$','\n','\\n')
|
scriptName = os.path.splitext(os.path.basename(__file__))[0]
|
||||||
scriptName = os.path.splitext(scriptID.split()[1])[0]
|
scriptID = ' '.join([scriptName,damask.version])
|
||||||
|
|
||||||
# ------------------------------------------ aux functions ---------------------------------
|
# ------------------------------------------ aux functions ---------------------------------
|
||||||
|
|
||||||
|
|
|
@ -6,8 +6,8 @@ import numpy as np
|
||||||
from optparse import OptionParser
|
from optparse import OptionParser
|
||||||
import damask
|
import damask
|
||||||
|
|
||||||
scriptID = string.replace('$Id$','\n','\\n')
|
scriptName = os.path.splitext(os.path.basename(__file__))[0]
|
||||||
scriptName = os.path.splitext(scriptID.split()[1])[0]
|
scriptID = ' '.join([scriptName,damask.version])
|
||||||
|
|
||||||
#--------------------------------------------------------------------------------------------------
|
#--------------------------------------------------------------------------------------------------
|
||||||
# MAIN
|
# MAIN
|
||||||
|
|
Loading…
Reference in New Issue