python files now report their version depending on VERSION file in $DAMASK_ROOT

This commit is contained in:
Martin Diehl 2016-01-27 17:06:00 +00:00
parent f2c7eea161
commit 7c9d344601
97 changed files with 194 additions and 194 deletions

View File

@ -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])
#-------------------------------------------------------------------------------------------------- #--------------------------------------------------------------------------------------------------

View File

@ -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(','))

View File

@ -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):

View File

@ -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': {

View File

@ -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

View File

@ -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] == '(!)':

View File

@ -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])
# -------------------------------------------------------------------- # --------------------------------------------------------------------

View File

@ -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))

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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):

View File

@ -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] \

View File

@ -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

View File

@ -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

View File

@ -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))

View File

@ -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)):

View File

@ -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 = """

View File

@ -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

View File

@ -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

View File

@ -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):

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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])
# -------------------------------------------------------------------- # --------------------------------------------------------------------

View File

@ -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],

View File

@ -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

View File

@ -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 '''

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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))

View File

@ -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):

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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):

View File

@ -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):

View File

@ -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

View File

@ -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

View File

@ -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 = { \

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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):

View File

@ -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):

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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])
# -------------------------------------------------------------------- # --------------------------------------------------------------------

View File

@ -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)

View File

@ -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):

View File

@ -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.

View File

@ -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

View File

@ -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

View File

@ -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)

View File

@ -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

View File

@ -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

View File

@ -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)):

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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])

View File

@ -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

View File

@ -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):

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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])
#-------------------------------------------------------------------------------------------------- #--------------------------------------------------------------------------------------------------

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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)

View File

@ -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 ---

View File

@ -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):

View File

@ -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('../../'))

View File

@ -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('../../'))
#------------------------------------------------------------------------------------------------- #-------------------------------------------------------------------------------------------------

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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 ---------------------------------

View File

@ -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