tested new scripts to update shebang, all files got same shebang (and for python files encoding)

This commit is contained in:
Martin Diehl 2014-04-01 18:41:14 +00:00
parent 782b54a430
commit 342ca0be47
76 changed files with 105 additions and 18 deletions

View File

@ -1,4 +1,5 @@
#!/usr/bin/env python #!/usr/bin/env python
# -*- coding: UTF-8 no BOM -*-
import numpy,os,damask,string,sys,subprocess,re import numpy,os,damask,string,sys,subprocess,re
from optparse import OptionParser, Option from optparse import OptionParser, Option

View File

@ -1,5 +1,6 @@
#!/usr/bin/env python #!/usr/bin/env python
# -*- coding: utf-8 -*- # -*- coding: UTF-8 no BOM -*-
import os import os
import glob import glob
from subprocess import call from subprocess import call

View File

@ -1,5 +1,5 @@
#!/usr/bin/env python #!/usr/bin/env python
# -*- coding: utf-8 -*- # -*- coding: UTF-8 no BOM -*-
from subprocess import call from subprocess import call
call('DAMASK_spectral -l tensionX.load -g 20grains16x16x16.geom', shell=True) call('DAMASK_spectral -l tensionX.load -g 20grains16x16x16.geom', shell=True)

View File

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
DEFAULT_VERSION='2013.1' DEFAULT_VERSION='2013.1'

View File

@ -1,4 +1,6 @@
#!/usr/bin/env python #!/usr/bin/env python
# -*- coding: UTF-8 no BOM -*-
import os import os
import damask import damask

View File

@ -1,4 +1,5 @@
#!/usr/bin/env python #!/usr/bin/env python
# -*- coding: UTF-8 no BOM -*-
# Makes postprocessing routines acessible from everywhere. # Makes postprocessing routines acessible from everywhere.
import os import os

View File

@ -1,3 +1,5 @@
# -*- coding: UTF-8 no BOM -*-
# $Id$ # $Id$
import sys, os import sys, os

View File

@ -1,3 +1,5 @@
# -*- coding: UTF-8 no BOM -*-
# $Id$ # $Id$
class ASCIItable(): class ASCIItable():

View File

@ -1,5 +1,4 @@
#!/usr/bin/env python # -*- coding: UTF-8 no BOM -*-
### --- COLOR CLASS -------------------------------------------------- ### --- COLOR CLASS --------------------------------------------------

View File

@ -1,3 +1,5 @@
# -*- coding: UTF-8 no BOM -*-
# $Id$ # $Id$
from .material import Material from .material import Material

View File

@ -1,3 +1,5 @@
# -*- coding: UTF-8 no BOM -*-
# $Id$ # $Id$
import re import re

View File

@ -1,3 +1,5 @@
# -*- coding: UTF-8 no BOM -*-
# $Id$ # $Id$
import re import re

View File

@ -1,3 +1,5 @@
# -*- coding: UTF-8 no BOM -*-
# $Id$ # $Id$
import os,sys,string,re,subprocess,shlex import os,sys,string,re,subprocess,shlex

View File

@ -1,3 +1,5 @@
# -*- coding: UTF-8 no BOM -*-
# $Id$ # $Id$
from .geometry import Geometry # only one class from .geometry import Geometry # only one class

View File

@ -1,3 +1,5 @@
# -*- coding: UTF-8 no BOM -*-
# $Id$ # $Id$
import damask.geometry import damask.geometry

View File

@ -1,3 +1,5 @@
# -*- coding: UTF-8 no BOM -*-
# $Id$ # $Id$
from .geometry import Geometry from .geometry import Geometry

View File

@ -1,3 +1,5 @@
# -*- coding: UTF-8 no BOM -*-
# $Id$ # $Id$
from .geometry import Geometry from .geometry import Geometry

View File

@ -1,3 +1,5 @@
# -*- coding: UTF-8 no BOM -*-
import numpy,math,random import numpy,math,random
# ****************************************************************************************** # ******************************************************************************************

View File

@ -1,3 +1,5 @@
# -*- coding: UTF-8 no BOM -*-
# $Id$ # $Id$
import numpy as np import numpy as np

View File

@ -1,3 +1,5 @@
# -*- coding: UTF-8 no BOM -*-
# $Id$ # $Id$
# This tool converts a msc.marc result file into the vtk format that # This tool converts a msc.marc result file into the vtk format that
# can be viewed by Paraview software (Kitware), or MayaVi (needs xml-vtk, or ... # can be viewed by Paraview software (Kitware), or MayaVi (needs xml-vtk, or ...

View File

@ -1,3 +1,5 @@
# -*- coding: UTF-8 no BOM -*-
# $Id$ # $Id$
from .solver import Solver # only one class from .solver import Solver # only one class

View File

@ -1,3 +1,5 @@
# -*- coding: UTF-8 no BOM -*-
# $Id$ # $Id$
from .solver import Solver from .solver import Solver

View File

@ -1,3 +1,5 @@
# -*- coding: UTF-8 no BOM -*-
# $Id$ # $Id$
import damask.solver import damask.solver

View File

@ -1,3 +1,5 @@
# -*- coding: UTF-8 no BOM -*-
# $Id$ # $Id$
from .solver import Solver from .solver import Solver

View File

@ -1,3 +1,5 @@
# -*- coding: UTF-8 no BOM -*-
# $Id$ # $Id$
from .test import Test from .test import Test

View File

@ -1,4 +1,5 @@
#!/usr/bin/env python # -*- coding: UTF-8 no BOM -*-
# $Id$ # $Id$
import os, sys, shlex, inspect import os, sys, shlex, inspect

View File

@ -1,3 +1,5 @@
# -*- coding: UTF-8 no BOM -*-
# damask utility functions # damask utility functions
import math import math
try: try:

View File

@ -1,4 +1,5 @@
#!/usr/bin/env python #!/usr/bin/env python
# -*- coding: UTF-8 no BOM -*-
import os,sys,string,re,numpy,scipy.ndimage,scipy.signal,vtk import os,sys,string,re,numpy,scipy.ndimage,scipy.signal,vtk
import damask import damask

View File

@ -1,5 +1,5 @@
#!/usr/bin/env python #!/usr/bin/env python
# -*- coding: utf-8 -*- # -*- coding: UTF-8 no BOM -*-
import os,sys,string,re,numpy,scipy.ndimage,scipy.signal,vtk import os,sys,string,re,numpy,scipy.ndimage,scipy.signal,vtk
import damask import damask

View File

@ -1,4 +1,5 @@
#!/usr/bin/env python #!/usr/bin/env python
# -*- coding: UTF-8 no BOM -*-
import os,re,sys,math,string,damask,numpy import os,re,sys,math,string,damask,numpy
from optparse import OptionParser, Option from optparse import OptionParser, Option

View File

@ -1,4 +1,5 @@
#!/usr/bin/env python #!/usr/bin/env python
# -*- coding: UTF-8 no BOM -*-
import os,re,sys,math,numpy,string,damask import os,re,sys,math,numpy,string,damask
from collections import defaultdict from collections import defaultdict

View File

@ -1,4 +1,5 @@
#!/usr/bin/env python #!/usr/bin/env python
# -*- coding: UTF-8 no BOM -*-
import os,re,sys,math,string,h5py import os,re,sys,math,string,h5py
import numpy as np import numpy as np

View File

@ -1,4 +1,5 @@
#!/usr/bin/env python #!/usr/bin/env python
# -*- coding: UTF-8 no BOM -*-
import os,re,sys,math,string,numpy,damask import os,re,sys,math,string,numpy,damask
from optparse import OptionParser, Option from optparse import OptionParser, Option

View File

@ -1,4 +1,5 @@
#!/usr/bin/env python #!/usr/bin/env python
# -*- coding: UTF-8 no BOM -*-
import os,re,sys,math,string,numpy,damask import os,re,sys,math,string,numpy,damask
from optparse import OptionParser, Option from optparse import OptionParser, Option

View File

@ -1,4 +1,5 @@
#!/usr/bin/env python #!/usr/bin/env python
# -*- coding: UTF-8 no BOM -*-
import os,re,sys,math,string,numpy,damask import os,re,sys,math,string,numpy,damask
from optparse import OptionParser, Option from optparse import OptionParser, Option

View File

@ -1,4 +1,5 @@
#!/usr/bin/env python #!/usr/bin/env python
# -*- coding: UTF-8 no BOM -*-
import os,re,sys,math,string,damask import os,re,sys,math,string,damask
from optparse import OptionParser, Option from optparse import OptionParser, Option

View File

@ -1,4 +1,5 @@
#!/usr/bin/env python #!/usr/bin/env python
# -*- coding: UTF-8 no BOM -*-
import os,re,sys,math,string,damask import os,re,sys,math,string,damask
from optparse import OptionParser, Option from optparse import OptionParser, Option

View File

@ -1,4 +1,5 @@
#!/usr/bin/env python #!/usr/bin/env python
# -*- coding: UTF-8 no BOM -*-
import os,re,sys,math,string,numpy,damask import os,re,sys,math,string,numpy,damask
from optparse import OptionParser, Option from optparse import OptionParser, Option

View File

@ -1,4 +1,5 @@
#!/usr/bin/env python #!/usr/bin/env python
# -*- coding: UTF-8 no BOM -*-
import os,re,sys,math,numpy,string,damask import os,re,sys,math,numpy,string,damask
from optparse import OptionParser, Option from optparse import OptionParser, Option

View File

@ -1,4 +1,5 @@
#!/usr/bin/env python #!/usr/bin/env python
# -*- coding: UTF-8 no BOM -*-
import os,re,sys,math,numpy,string,damask import os,re,sys,math,numpy,string,damask
from scipy import ndimage from scipy import ndimage

View File

@ -1,4 +1,5 @@
#!/usr/bin/env python #!/usr/bin/env python
# -*- coding: UTF-8 no BOM -*-
import os,sys,string,re,math,numpy import os,sys,string,re,math,numpy
import damask import damask

View File

@ -1,4 +1,5 @@
#!/usr/bin/env python #!/usr/bin/env python
# -*- coding: UTF-8 no BOM -*-
import os,re,sys,math,numpy,string,damask import os,re,sys,math,numpy,string,damask
from optparse import OptionParser, Option from optparse import OptionParser, Option

View File

@ -1,4 +1,5 @@
#!/usr/bin/env python #!/usr/bin/env python
# -*- coding: UTF-8 no BOM -*-
import os,re,sys,math,string,damask import os,re,sys,math,string,damask
from optparse import OptionParser, Option from optparse import OptionParser, Option

View File

@ -1,4 +1,5 @@
#!/usr/bin/env python #!/usr/bin/env python
# -*- coding: UTF-8 no BOM -*-
import os,sys,string,itertools,re,math,numpy import os,sys,string,itertools,re,math,numpy
import damask import damask

View File

@ -1,4 +1,5 @@
#!/usr/bin/env python #!/usr/bin/env python
# -*- coding: UTF-8 no BOM -*-
import os,re,sys,math,numpy,string,damask import os,re,sys,math,numpy,string,damask
from optparse import OptionParser, Option from optparse import OptionParser, Option

View File

@ -1,4 +1,5 @@
#!/usr/bin/python #!/usr/bin/env python
# -*- coding: UTF-8 no BOM -*-
import os,re,sys,math import os,re,sys,math
from optparse import OptionParser from optparse import OptionParser

View File

@ -1,4 +1,5 @@
#!/usr/bin/env python #!/usr/bin/env python
# -*- coding: UTF-8 no BOM -*-
import os,re,sys,math,numpy,string,damask import os,re,sys,math,numpy,string,damask
from optparse import OptionParser, Option from optparse import OptionParser, Option

View File

@ -1,4 +1,5 @@
#!/usr/bin/env python #!/usr/bin/env python
# -*- coding: UTF-8 no BOM -*-
import os,re,sys,math,numpy,string,damask import os,re,sys,math,numpy,string,damask
from optparse import OptionParser, Option from optparse import OptionParser, Option

View File

@ -1,4 +1,5 @@
#!/usr/bin/env python #!/usr/bin/env python
# -*- coding: UTF-8 no BOM -*-
import os,re,sys,math,string,numpy,damask,time import os,re,sys,math,string,numpy,damask,time
from optparse import OptionParser, Option from optparse import OptionParser, Option

View File

@ -1,4 +1,5 @@
#!/usr/bin/env python #!/usr/bin/env python
# -*- coding: UTF-8 no BOM -*-
import os,sys,string,numpy import os,sys,string,numpy
from optparse import OptionParser, Option from optparse import OptionParser, Option

View File

@ -1,4 +1,5 @@
#!/usr/bin/env python #!/usr/bin/env python
# -*- coding: UTF-8 no BOM -*-
import os,re,sys,math,string,numpy,damask,time import os,re,sys,math,string,numpy,damask,time
from optparse import OptionParser, Option from optparse import OptionParser, Option

View File

@ -1,4 +1,5 @@
#!/usr/bin/env python #!/usr/bin/env python
# -*- coding: UTF-8 no BOM -*-
import os,re,sys,math,string,damask import os,re,sys,math,string,damask
from optparse import OptionParser, Option from optparse import OptionParser, Option

View File

@ -1,4 +1,5 @@
#!/usr/bin/env python #!/usr/bin/env python
# -*- coding: UTF-8 no BOM -*-
import os,re,sys,math,string,damask import os,re,sys,math,string,damask
from optparse import OptionParser, Option from optparse import OptionParser, Option

View File

@ -1,4 +1,5 @@
#!/usr/bin/env python #!/usr/bin/env python
# -*- coding: UTF-8 no BOM -*-
import os,re,sys,fnmatch,math,string,damask import os,re,sys,fnmatch,math,string,damask
from optparse import OptionParser, Option from optparse import OptionParser, Option

View File

@ -1,4 +1,5 @@
#!/usr/bin/env python #!/usr/bin/env python
# -*- coding: UTF-8 no BOM -*-
import os, sys, math, string, numpy, shutil import os, sys, math, string, numpy, shutil
import damask import damask

View File

@ -1,4 +1,5 @@
#!/usr/bin/env python #!/usr/bin/env python
# -*- coding: UTF-8 no BOM -*-
import os, sys, math, string, re, time import os, sys, math, string, re, time
import damask import damask

View File

@ -1,4 +1,5 @@
#!/usr/bin/env python #!/usr/bin/env python
# -*- coding: UTF-8 no BOM -*-
import sys, string import sys, string
import damask import damask

View File

@ -1,4 +1,5 @@
#!/usr/bin/env python #!/usr/bin/env python
# -*- coding: UTF-8 no BOM -*-
import os,re,sys,math,string,numpy,damask import os,re,sys,math,string,numpy,damask
from optparse import OptionParser, Option from optparse import OptionParser, Option

View File

@ -1,4 +1,5 @@
#!/usr/bin/env python #!/usr/bin/env python
# -*- coding: UTF-8 no BOM -*-
import math, string, sys, os import math, string, sys, os
from damask import Color,Colormap from damask import Color,Colormap

View File

@ -1,4 +1,5 @@
#!/usr/bin/env python #!/usr/bin/env python
# -*- coding: UTF-8 no BOM -*-
import os,re,sys,math,numpy,string import os,re,sys,math,numpy,string
import damask import damask

View File

@ -1,4 +1,5 @@
#!/usr/bin/env python #!/usr/bin/env python
# -*- coding: UTF-8 no BOM -*-
import pdb, os, sys, gc, math, re, threading, time, struct, string import pdb, os, sys, gc, math, re, threading, time, struct, string
import damask import damask

View File

@ -1,4 +1,5 @@
#!/usr/bin/env python #!/usr/bin/env python
# -*- coding: UTF-8 no BOM -*-
import os,sys,string,damask import os,sys,string,damask
from optparse import OptionParser from optparse import OptionParser

View File

@ -1,4 +1,5 @@
#!/usr/bin/env python #!/usr/bin/env python
# -*- coding: UTF-8 no BOM -*-
import os,re,sys,string,numpy,damask import os,re,sys,string,numpy,damask
from optparse import OptionParser, Option from optparse import OptionParser, Option

View File

@ -1,4 +1,5 @@
#!/usr/bin/env python #!/usr/bin/env python
# -*- coding: UTF-8 no BOM -*-
import os,re,sys,math,string,numpy,damask,time import os,re,sys,math,string,numpy,damask,time
from optparse import OptionParser, Option from optparse import OptionParser, Option

View File

@ -1,4 +1,5 @@
#!/usr/bin/env python #!/usr/bin/env python
# -*- coding: UTF-8 no BOM -*-
import os,re,sys,math,string,damask import os,re,sys,math,string,damask
from optparse import OptionParser, Option from optparse import OptionParser, Option

View File

@ -1,6 +1,6 @@
#!/usr/bin/env python #!/usr/bin/env python
# -*- coding: utf-8 -*- # -*- coding: UTF-8 no BOM -*-
#
import os,numpy,string,math,sys import os,numpy,string,math,sys
from optparse import OptionParser, Option from optparse import OptionParser, Option

View File

@ -1,4 +1,5 @@
#!/usr/bin/env python #!/usr/bin/env python
# -*- coding: UTF-8 no BOM -*-
import os, sys, string, glob, re import os, sys, string, glob, re
import damask import damask

View File

@ -1,4 +1,5 @@
#!/usr/bin/env python #!/usr/bin/env python
# -*- coding: UTF-8 no BOM -*-
import os,sys,string,re,numpy,vtk import os,sys,string,re,numpy,vtk
import damask import damask

View File

@ -1,4 +1,5 @@
#!/usr/bin/env python #!/usr/bin/env python
# -*- coding: UTF-8 no BOM -*-
import os,sys,string,re,numpy,vtk import os,sys,string,re,numpy,vtk
import damask import damask

View File

@ -1,4 +1,5 @@
#!/usr/bin/env python #!/usr/bin/env python
# -*- coding: UTF-8 no BOM -*-
import os,sys,string,re,numpy,vtk import os,sys,string,re,numpy,vtk
import damask import damask

View File

@ -1,4 +1,5 @@
#!/usr/bin/env python #!/usr/bin/env python
# -*- coding: UTF-8 no BOM -*-
import os, sys, string, re, shutil import os, sys, string, re, shutil
from optparse import OptionParser from optparse import OptionParser

View File

@ -1,4 +1,5 @@
#!/usr/bin/env python #!/usr/bin/env python
# -*- coding: UTF-8 no BOM -*-
import os,sys,string,re,numpy,vtk import os,sys,string,re,numpy,vtk
import damask import damask

View File

@ -1,5 +1,6 @@
#!/usr/bin/env python #!/usr/bin/env python
# -*- coding: UTF-8 no BOM -*- # -*- coding: UTF-8 no BOM -*-
# -*- coding: UTF-8 no BOM -*-
import os,sys,string,re,math,numpy import os,sys,string,re,math,numpy
import damask import damask

View File

@ -1,5 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os,sys,math,string,re,numpy import os,sys,math,string,re,numpy
import damask import damask

View File

@ -1,5 +1,5 @@
#!/usr/bin/env python #!/usr/bin/env python
# -*- coding: UTF-8 no BOM -* # -*- coding: UTF-8 no BOM -*-
import sys,os,pwd,math,re,string,numpy, damask import sys,os,pwd,math,re,string,numpy, damask
from optparse import OptionParser from optparse import OptionParser

View File

@ -1,4 +1,5 @@
#!/usr/bin/env python #!/usr/bin/env python
# -*- coding: UTF-8 no BOM -*-
import os,sys,string,numpy,damask import os,sys,string,numpy,damask
from optparse import OptionParser, Option from optparse import OptionParser, Option