From 342ca0be475fa6975d900da2a44f53ed8d0b44ce Mon Sep 17 00:00:00 2001 From: Martin Diehl Date: Tue, 1 Apr 2014 18:41:14 +0000 Subject: [PATCH] tested new scripts to update shebang, all files got same shebang (and for python files encoding) --- code/DAMASK_run.py | 1 + examples/SpectralMethod/example_postprocess.py | 3 ++- examples/SpectralMethod/example_run.py | 2 +- installation/mods_MarcMentat/apply_DAMASK_modifications.sh | 2 +- installation/symlink_Code.py | 2 ++ installation/symlink_Processing.py | 1 + lib/damask/__init__.py | 2 ++ lib/damask/asciitable.py | 2 ++ lib/damask/colormaps.py | 3 +-- lib/damask/config/__init__.py | 2 ++ lib/damask/config/material.py | 2 ++ lib/damask/config/material_2012-09-07.py | 2 ++ lib/damask/environment.py | 2 ++ lib/damask/geometry/__init__.py | 2 ++ lib/damask/geometry/geometry.py | 2 ++ lib/damask/geometry/marc.py | 2 ++ lib/damask/geometry/spectral.py | 2 ++ lib/damask/orientation.py | 2 ++ lib/damask/result.py | 2 ++ lib/damask/result/marc2vtk.py | 2 ++ lib/damask/solver/__init__.py | 2 ++ lib/damask/solver/marc.py | 2 ++ lib/damask/solver/solver.py | 2 ++ lib/damask/solver/spectral.py | 2 ++ lib/damask/test/__init__.py | 2 ++ lib/damask/test/test.py | 3 ++- lib/damask/util.py | 2 ++ processing/misc/gwyddion_filter.py | 1 + processing/misc/vtk_fromGwyddion.py | 2 +- processing/post/addCalculation.py | 1 + processing/post/addCauchy.py | 1 + processing/post/addCauchyX.py | 1 + processing/post/addCompatibilityMismatch.py | 1 + processing/post/addCurl.py | 1 + processing/post/addDeformedConfiguration.py | 1 + processing/post/addDeterminant.py | 1 + processing/post/addDeviator.py | 1 + processing/post/addDivergence.py | 1 + processing/post/addEhkl.py | 1 + processing/post/addEuclideanDistance.py | 1 + processing/post/addIPFcolor.py | 1 + processing/post/addMises.py | 1 + processing/post/addNorm.py | 1 + processing/post/addOrientations.py | 1 + processing/post/addPK2.py | 1 + processing/post/addSchmidfactors.py | 3 ++- processing/post/addSpectralDecomposition.py | 1 + processing/post/addStrainTensors.py | 1 + processing/post/averageDown.py | 1 + processing/post/binXY.py | 1 + processing/post/blowUp.py | 1 + processing/post/deleteColumn.py | 1 + processing/post/deleteInfo.py | 1 + processing/post/filterTable.py | 1 + processing/post/marc_deformedGeometry.py | 3 ++- processing/post/marc_extractData.py | 3 ++- processing/post/mentat_colorMap.py | 3 ++- processing/post/nodesFromCentroids.py | 1 + processing/post/perceptualUniformColorMap.py | 1 + processing/post/permuteData.py | 1 + processing/post/postResults.py | 3 ++- processing/post/showTable.py | 1 + processing/post/sortTable.py | 1 + processing/post/stddevDown.py | 1 + processing/post/tagLabel.py | 1 + processing/post/vtk2ang.py | 4 ++-- processing/post/vtk_addData.py | 3 ++- processing/post/vtk_addPointcloudData.py | 1 + processing/post/vtk_addVoxelcloudData.py | 1 + processing/post/vtk_pointcloud.py | 1 + processing/post/vtk_scalars2vectors.py | 3 ++- processing/post/vtk_voxelcloud.py | 1 + processing/pre/geom_addPrimitive.py | 1 + processing/pre/geom_fromVoronoiTessellation.py | 1 - processing/pre/mentat_pbcOnBoxMesh.py | 2 +- processing/pre/seeds_fromGeom.py | 1 + 76 files changed, 105 insertions(+), 18 deletions(-) diff --git a/code/DAMASK_run.py b/code/DAMASK_run.py index a20ebab68..6b90de98d 100755 --- a/code/DAMASK_run.py +++ b/code/DAMASK_run.py @@ -1,4 +1,5 @@ #!/usr/bin/env python +# -*- coding: UTF-8 no BOM -*- import numpy,os,damask,string,sys,subprocess,re from optparse import OptionParser, Option diff --git a/examples/SpectralMethod/example_postprocess.py b/examples/SpectralMethod/example_postprocess.py index 935072899..0dec182f6 100755 --- a/examples/SpectralMethod/example_postprocess.py +++ b/examples/SpectralMethod/example_postprocess.py @@ -1,5 +1,6 @@ #!/usr/bin/env python -# -*- coding: utf-8 -*- +# -*- coding: UTF-8 no BOM -*- + import os import glob from subprocess import call diff --git a/examples/SpectralMethod/example_run.py b/examples/SpectralMethod/example_run.py index 3809f17cf..b1abd6fbc 100755 --- a/examples/SpectralMethod/example_run.py +++ b/examples/SpectralMethod/example_run.py @@ -1,5 +1,5 @@ #!/usr/bin/env python -# -*- coding: utf-8 -*- +# -*- coding: UTF-8 no BOM -*- from subprocess import call call('DAMASK_spectral -l tensionX.load -g 20grains16x16x16.geom', shell=True) \ No newline at end of file diff --git a/installation/mods_MarcMentat/apply_DAMASK_modifications.sh b/installation/mods_MarcMentat/apply_DAMASK_modifications.sh index 8d8a1c507..cafe4ac02 100755 --- a/installation/mods_MarcMentat/apply_DAMASK_modifications.sh +++ b/installation/mods_MarcMentat/apply_DAMASK_modifications.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash DEFAULT_VERSION='2013.1' diff --git a/installation/symlink_Code.py b/installation/symlink_Code.py index 64301056b..ec335019f 100755 --- a/installation/symlink_Code.py +++ b/installation/symlink_Code.py @@ -1,4 +1,6 @@ #!/usr/bin/env python +# -*- coding: UTF-8 no BOM -*- + import os import damask diff --git a/installation/symlink_Processing.py b/installation/symlink_Processing.py index c29dfe80d..6a54e9765 100755 --- a/installation/symlink_Processing.py +++ b/installation/symlink_Processing.py @@ -1,4 +1,5 @@ #!/usr/bin/env python +# -*- coding: UTF-8 no BOM -*- # Makes postprocessing routines acessible from everywhere. import os diff --git a/lib/damask/__init__.py b/lib/damask/__init__.py index d35fe9b5a..7348ee55e 100644 --- a/lib/damask/__init__.py +++ b/lib/damask/__init__.py @@ -1,3 +1,5 @@ +# -*- coding: UTF-8 no BOM -*- + # $Id$ import sys, os diff --git a/lib/damask/asciitable.py b/lib/damask/asciitable.py index 3fd8638f0..ff3129f7d 100644 --- a/lib/damask/asciitable.py +++ b/lib/damask/asciitable.py @@ -1,3 +1,5 @@ +# -*- coding: UTF-8 no BOM -*- + # $Id$ class ASCIItable(): diff --git a/lib/damask/colormaps.py b/lib/damask/colormaps.py index c53289498..35c715fa0 100644 --- a/lib/damask/colormaps.py +++ b/lib/damask/colormaps.py @@ -1,5 +1,4 @@ -#!/usr/bin/env python - +# -*- coding: UTF-8 no BOM -*- ### --- COLOR CLASS -------------------------------------------------- diff --git a/lib/damask/config/__init__.py b/lib/damask/config/__init__.py index 137a52524..3c75ebd19 100644 --- a/lib/damask/config/__init__.py +++ b/lib/damask/config/__init__.py @@ -1,3 +1,5 @@ +# -*- coding: UTF-8 no BOM -*- + # $Id$ from .material import Material diff --git a/lib/damask/config/material.py b/lib/damask/config/material.py index a0d995a80..16a9e1349 100644 --- a/lib/damask/config/material.py +++ b/lib/damask/config/material.py @@ -1,3 +1,5 @@ +# -*- coding: UTF-8 no BOM -*- + # $Id$ import re diff --git a/lib/damask/config/material_2012-09-07.py b/lib/damask/config/material_2012-09-07.py index 9f7b8dd4a..3bf8c5876 100644 --- a/lib/damask/config/material_2012-09-07.py +++ b/lib/damask/config/material_2012-09-07.py @@ -1,3 +1,5 @@ +# -*- coding: UTF-8 no BOM -*- + # $Id$ import re diff --git a/lib/damask/environment.py b/lib/damask/environment.py index 09aab12c6..ff124f770 100644 --- a/lib/damask/environment.py +++ b/lib/damask/environment.py @@ -1,3 +1,5 @@ +# -*- coding: UTF-8 no BOM -*- + # $Id$ import os,sys,string,re,subprocess,shlex diff --git a/lib/damask/geometry/__init__.py b/lib/damask/geometry/__init__.py index e7675bb58..3d35ad4fe 100644 --- a/lib/damask/geometry/__init__.py +++ b/lib/damask/geometry/__init__.py @@ -1,3 +1,5 @@ +# -*- coding: UTF-8 no BOM -*- + # $Id$ from .geometry import Geometry # only one class diff --git a/lib/damask/geometry/geometry.py b/lib/damask/geometry/geometry.py index 1c65b6ce5..83a7c58a6 100644 --- a/lib/damask/geometry/geometry.py +++ b/lib/damask/geometry/geometry.py @@ -1,3 +1,5 @@ +# -*- coding: UTF-8 no BOM -*- + # $Id$ import damask.geometry diff --git a/lib/damask/geometry/marc.py b/lib/damask/geometry/marc.py index 742be6eea..3fed41990 100644 --- a/lib/damask/geometry/marc.py +++ b/lib/damask/geometry/marc.py @@ -1,3 +1,5 @@ +# -*- coding: UTF-8 no BOM -*- + # $Id$ from .geometry import Geometry diff --git a/lib/damask/geometry/spectral.py b/lib/damask/geometry/spectral.py index 14ac10f78..f7c52079f 100644 --- a/lib/damask/geometry/spectral.py +++ b/lib/damask/geometry/spectral.py @@ -1,3 +1,5 @@ +# -*- coding: UTF-8 no BOM -*- + # $Id$ from .geometry import Geometry diff --git a/lib/damask/orientation.py b/lib/damask/orientation.py index e6bb634ad..6f1531646 100644 --- a/lib/damask/orientation.py +++ b/lib/damask/orientation.py @@ -1,3 +1,5 @@ +# -*- coding: UTF-8 no BOM -*- + import numpy,math,random # ****************************************************************************************** diff --git a/lib/damask/result.py b/lib/damask/result.py index 8d70cdfaf..b36d8e782 100644 --- a/lib/damask/result.py +++ b/lib/damask/result.py @@ -1,3 +1,5 @@ +# -*- coding: UTF-8 no BOM -*- + # $Id$ import numpy as np diff --git a/lib/damask/result/marc2vtk.py b/lib/damask/result/marc2vtk.py index 01f6b3645..84c2a6313 100644 --- a/lib/damask/result/marc2vtk.py +++ b/lib/damask/result/marc2vtk.py @@ -1,3 +1,5 @@ +# -*- coding: UTF-8 no BOM -*- + # $Id$ # 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 ... diff --git a/lib/damask/solver/__init__.py b/lib/damask/solver/__init__.py index 39dee23de..11a177e29 100644 --- a/lib/damask/solver/__init__.py +++ b/lib/damask/solver/__init__.py @@ -1,3 +1,5 @@ +# -*- coding: UTF-8 no BOM -*- + # $Id$ from .solver import Solver # only one class diff --git a/lib/damask/solver/marc.py b/lib/damask/solver/marc.py index abd32a592..a8ee33ac1 100644 --- a/lib/damask/solver/marc.py +++ b/lib/damask/solver/marc.py @@ -1,3 +1,5 @@ +# -*- coding: UTF-8 no BOM -*- + # $Id$ from .solver import Solver diff --git a/lib/damask/solver/solver.py b/lib/damask/solver/solver.py index 9740f58a8..bef87ed4a 100644 --- a/lib/damask/solver/solver.py +++ b/lib/damask/solver/solver.py @@ -1,3 +1,5 @@ +# -*- coding: UTF-8 no BOM -*- + # $Id$ import damask.solver diff --git a/lib/damask/solver/spectral.py b/lib/damask/solver/spectral.py index 505d51b5b..d83ea8da9 100644 --- a/lib/damask/solver/spectral.py +++ b/lib/damask/solver/spectral.py @@ -1,3 +1,5 @@ +# -*- coding: UTF-8 no BOM -*- + # $Id$ from .solver import Solver diff --git a/lib/damask/test/__init__.py b/lib/damask/test/__init__.py index 96fcfc0d1..9ecfb0c57 100644 --- a/lib/damask/test/__init__.py +++ b/lib/damask/test/__init__.py @@ -1,3 +1,5 @@ +# -*- coding: UTF-8 no BOM -*- + # $Id$ from .test import Test diff --git a/lib/damask/test/test.py b/lib/damask/test/test.py index 7c002b9e3..ce1e548a6 100644 --- a/lib/damask/test/test.py +++ b/lib/damask/test/test.py @@ -1,4 +1,5 @@ -#!/usr/bin/env python +# -*- coding: UTF-8 no BOM -*- + # $Id$ import os, sys, shlex, inspect diff --git a/lib/damask/util.py b/lib/damask/util.py index aa135e284..df551f014 100644 --- a/lib/damask/util.py +++ b/lib/damask/util.py @@ -1,3 +1,5 @@ +# -*- coding: UTF-8 no BOM -*- + # damask utility functions import math try: diff --git a/processing/misc/gwyddion_filter.py b/processing/misc/gwyddion_filter.py index aaba23eb8..2a1937368 100755 --- a/processing/misc/gwyddion_filter.py +++ b/processing/misc/gwyddion_filter.py @@ -1,4 +1,5 @@ #!/usr/bin/env python +# -*- coding: UTF-8 no BOM -*- import os,sys,string,re,numpy,scipy.ndimage,scipy.signal,vtk import damask diff --git a/processing/misc/vtk_fromGwyddion.py b/processing/misc/vtk_fromGwyddion.py index 36c7efc13..344e885b1 100755 --- a/processing/misc/vtk_fromGwyddion.py +++ b/processing/misc/vtk_fromGwyddion.py @@ -1,5 +1,5 @@ #!/usr/bin/env python -# -*- coding: utf-8 -*- +# -*- coding: UTF-8 no BOM -*- import os,sys,string,re,numpy,scipy.ndimage,scipy.signal,vtk import damask diff --git a/processing/post/addCalculation.py b/processing/post/addCalculation.py index 975739f88..adbefa215 100755 --- a/processing/post/addCalculation.py +++ b/processing/post/addCalculation.py @@ -1,4 +1,5 @@ #!/usr/bin/env python +# -*- coding: UTF-8 no BOM -*- import os,re,sys,math,string,damask,numpy from optparse import OptionParser, Option diff --git a/processing/post/addCauchy.py b/processing/post/addCauchy.py index c1648fcfc..2c9bdec42 100755 --- a/processing/post/addCauchy.py +++ b/processing/post/addCauchy.py @@ -1,4 +1,5 @@ #!/usr/bin/env python +# -*- coding: UTF-8 no BOM -*- import os,re,sys,math,numpy,string,damask from collections import defaultdict diff --git a/processing/post/addCauchyX.py b/processing/post/addCauchyX.py index 06e16bc1c..29a2cb0e7 100755 --- a/processing/post/addCauchyX.py +++ b/processing/post/addCauchyX.py @@ -1,4 +1,5 @@ #!/usr/bin/env python +# -*- coding: UTF-8 no BOM -*- import os,re,sys,math,string,h5py import numpy as np diff --git a/processing/post/addCompatibilityMismatch.py b/processing/post/addCompatibilityMismatch.py index e03d751cb..8845efd01 100755 --- a/processing/post/addCompatibilityMismatch.py +++ b/processing/post/addCompatibilityMismatch.py @@ -1,4 +1,5 @@ #!/usr/bin/env python +# -*- coding: UTF-8 no BOM -*- import os,re,sys,math,string,numpy,damask from optparse import OptionParser, Option diff --git a/processing/post/addCurl.py b/processing/post/addCurl.py index d379f534a..2e6b17dbf 100755 --- a/processing/post/addCurl.py +++ b/processing/post/addCurl.py @@ -1,4 +1,5 @@ #!/usr/bin/env python +# -*- coding: UTF-8 no BOM -*- import os,re,sys,math,string,numpy,damask from optparse import OptionParser, Option diff --git a/processing/post/addDeformedConfiguration.py b/processing/post/addDeformedConfiguration.py index 48e81b9ba..578192ee0 100755 --- a/processing/post/addDeformedConfiguration.py +++ b/processing/post/addDeformedConfiguration.py @@ -1,4 +1,5 @@ #!/usr/bin/env python +# -*- coding: UTF-8 no BOM -*- import os,re,sys,math,string,numpy,damask from optparse import OptionParser, Option diff --git a/processing/post/addDeterminant.py b/processing/post/addDeterminant.py index 11e08bfef..83ed33834 100755 --- a/processing/post/addDeterminant.py +++ b/processing/post/addDeterminant.py @@ -1,4 +1,5 @@ #!/usr/bin/env python +# -*- coding: UTF-8 no BOM -*- import os,re,sys,math,string,damask from optparse import OptionParser, Option diff --git a/processing/post/addDeviator.py b/processing/post/addDeviator.py index 636a0d725..244bee547 100755 --- a/processing/post/addDeviator.py +++ b/processing/post/addDeviator.py @@ -1,4 +1,5 @@ #!/usr/bin/env python +# -*- coding: UTF-8 no BOM -*- import os,re,sys,math,string,damask from optparse import OptionParser, Option diff --git a/processing/post/addDivergence.py b/processing/post/addDivergence.py index 9369f498b..5f9c7e015 100755 --- a/processing/post/addDivergence.py +++ b/processing/post/addDivergence.py @@ -1,4 +1,5 @@ #!/usr/bin/env python +# -*- coding: UTF-8 no BOM -*- import os,re,sys,math,string,numpy,damask from optparse import OptionParser, Option diff --git a/processing/post/addEhkl.py b/processing/post/addEhkl.py index fc7c8fe38..14e159109 100755 --- a/processing/post/addEhkl.py +++ b/processing/post/addEhkl.py @@ -1,4 +1,5 @@ #!/usr/bin/env python +# -*- coding: UTF-8 no BOM -*- import os,re,sys,math,numpy,string,damask from optparse import OptionParser, Option diff --git a/processing/post/addEuclideanDistance.py b/processing/post/addEuclideanDistance.py index 49878e193..324db7227 100755 --- a/processing/post/addEuclideanDistance.py +++ b/processing/post/addEuclideanDistance.py @@ -1,4 +1,5 @@ #!/usr/bin/env python +# -*- coding: UTF-8 no BOM -*- import os,re,sys,math,numpy,string,damask from scipy import ndimage diff --git a/processing/post/addIPFcolor.py b/processing/post/addIPFcolor.py index 4b7c28fa8..a89dcb088 100755 --- a/processing/post/addIPFcolor.py +++ b/processing/post/addIPFcolor.py @@ -1,4 +1,5 @@ #!/usr/bin/env python +# -*- coding: UTF-8 no BOM -*- import os,sys,string,re,math,numpy import damask diff --git a/processing/post/addMises.py b/processing/post/addMises.py index 60a39122b..a53401d5d 100755 --- a/processing/post/addMises.py +++ b/processing/post/addMises.py @@ -1,4 +1,5 @@ #!/usr/bin/env python +# -*- coding: UTF-8 no BOM -*- import os,re,sys,math,numpy,string,damask from optparse import OptionParser, Option diff --git a/processing/post/addNorm.py b/processing/post/addNorm.py index 0e5a84f3e..b7c289a4f 100755 --- a/processing/post/addNorm.py +++ b/processing/post/addNorm.py @@ -1,4 +1,5 @@ #!/usr/bin/env python +# -*- coding: UTF-8 no BOM -*- import os,re,sys,math,string,damask from optparse import OptionParser, Option diff --git a/processing/post/addOrientations.py b/processing/post/addOrientations.py index 9c291cbd4..e4e111693 100755 --- a/processing/post/addOrientations.py +++ b/processing/post/addOrientations.py @@ -1,4 +1,5 @@ #!/usr/bin/env python +# -*- coding: UTF-8 no BOM -*- import os,sys,string,itertools,re,math,numpy import damask diff --git a/processing/post/addPK2.py b/processing/post/addPK2.py index 5c0f99a84..8d35dddc0 100755 --- a/processing/post/addPK2.py +++ b/processing/post/addPK2.py @@ -1,4 +1,5 @@ #!/usr/bin/env python +# -*- coding: UTF-8 no BOM -*- import os,re,sys,math,numpy,string,damask from optparse import OptionParser, Option diff --git a/processing/post/addSchmidfactors.py b/processing/post/addSchmidfactors.py index ab9be3ec5..8bdd01d8c 100755 --- a/processing/post/addSchmidfactors.py +++ b/processing/post/addSchmidfactors.py @@ -1,4 +1,5 @@ -#!/usr/bin/python +#!/usr/bin/env python +# -*- coding: UTF-8 no BOM -*- import os,re,sys,math from optparse import OptionParser diff --git a/processing/post/addSpectralDecomposition.py b/processing/post/addSpectralDecomposition.py index 9caa3c722..c373c66a4 100755 --- a/processing/post/addSpectralDecomposition.py +++ b/processing/post/addSpectralDecomposition.py @@ -1,4 +1,5 @@ #!/usr/bin/env python +# -*- coding: UTF-8 no BOM -*- import os,re,sys,math,numpy,string,damask from optparse import OptionParser, Option diff --git a/processing/post/addStrainTensors.py b/processing/post/addStrainTensors.py index f206c3061..b57f38462 100755 --- a/processing/post/addStrainTensors.py +++ b/processing/post/addStrainTensors.py @@ -1,4 +1,5 @@ #!/usr/bin/env python +# -*- coding: UTF-8 no BOM -*- import os,re,sys,math,numpy,string,damask from optparse import OptionParser, Option diff --git a/processing/post/averageDown.py b/processing/post/averageDown.py index 77d2a1298..1db495295 100755 --- a/processing/post/averageDown.py +++ b/processing/post/averageDown.py @@ -1,4 +1,5 @@ #!/usr/bin/env python +# -*- coding: UTF-8 no BOM -*- import os,re,sys,math,string,numpy,damask,time from optparse import OptionParser, Option diff --git a/processing/post/binXY.py b/processing/post/binXY.py index 88c24fd4d..59d78cb1a 100755 --- a/processing/post/binXY.py +++ b/processing/post/binXY.py @@ -1,4 +1,5 @@ #!/usr/bin/env python +# -*- coding: UTF-8 no BOM -*- import os,sys,string,numpy from optparse import OptionParser, Option diff --git a/processing/post/blowUp.py b/processing/post/blowUp.py index a83e45ceb..00c8e369b 100755 --- a/processing/post/blowUp.py +++ b/processing/post/blowUp.py @@ -1,4 +1,5 @@ #!/usr/bin/env python +# -*- coding: UTF-8 no BOM -*- import os,re,sys,math,string,numpy,damask,time from optparse import OptionParser, Option diff --git a/processing/post/deleteColumn.py b/processing/post/deleteColumn.py index 8f8872012..8a02b0314 100755 --- a/processing/post/deleteColumn.py +++ b/processing/post/deleteColumn.py @@ -1,4 +1,5 @@ #!/usr/bin/env python +# -*- coding: UTF-8 no BOM -*- import os,re,sys,math,string,damask from optparse import OptionParser, Option diff --git a/processing/post/deleteInfo.py b/processing/post/deleteInfo.py index c7b8a94c7..b5445493a 100755 --- a/processing/post/deleteInfo.py +++ b/processing/post/deleteInfo.py @@ -1,4 +1,5 @@ #!/usr/bin/env python +# -*- coding: UTF-8 no BOM -*- import os,re,sys,math,string,damask from optparse import OptionParser, Option diff --git a/processing/post/filterTable.py b/processing/post/filterTable.py index c3675911e..cc78ddfff 100755 --- a/processing/post/filterTable.py +++ b/processing/post/filterTable.py @@ -1,4 +1,5 @@ #!/usr/bin/env python +# -*- coding: UTF-8 no BOM -*- import os,re,sys,fnmatch,math,string,damask from optparse import OptionParser, Option diff --git a/processing/post/marc_deformedGeometry.py b/processing/post/marc_deformedGeometry.py index 043ddc528..d74bbee41 100755 --- a/processing/post/marc_deformedGeometry.py +++ b/processing/post/marc_deformedGeometry.py @@ -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 damask diff --git a/processing/post/marc_extractData.py b/processing/post/marc_extractData.py index 014b65d93..87add0cc8 100755 --- a/processing/post/marc_extractData.py +++ b/processing/post/marc_extractData.py @@ -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 damask diff --git a/processing/post/mentat_colorMap.py b/processing/post/mentat_colorMap.py index d096e92ff..011d48947 100755 --- a/processing/post/mentat_colorMap.py +++ b/processing/post/mentat_colorMap.py @@ -1,4 +1,5 @@ -#!/usr/bin/env python +#!/usr/bin/env python +# -*- coding: UTF-8 no BOM -*- import sys, string import damask diff --git a/processing/post/nodesFromCentroids.py b/processing/post/nodesFromCentroids.py index 4a761e7fd..41d8f424d 100755 --- a/processing/post/nodesFromCentroids.py +++ b/processing/post/nodesFromCentroids.py @@ -1,4 +1,5 @@ #!/usr/bin/env python +# -*- coding: UTF-8 no BOM -*- import os,re,sys,math,string,numpy,damask from optparse import OptionParser, Option diff --git a/processing/post/perceptualUniformColorMap.py b/processing/post/perceptualUniformColorMap.py index f8adb107d..0cc742d7a 100755 --- a/processing/post/perceptualUniformColorMap.py +++ b/processing/post/perceptualUniformColorMap.py @@ -1,4 +1,5 @@ #!/usr/bin/env python +# -*- coding: UTF-8 no BOM -*- import math, string, sys, os from damask import Color,Colormap diff --git a/processing/post/permuteData.py b/processing/post/permuteData.py index 68ce19780..5c44a0bc9 100755 --- a/processing/post/permuteData.py +++ b/processing/post/permuteData.py @@ -1,4 +1,5 @@ #!/usr/bin/env python +# -*- coding: UTF-8 no BOM -*- import os,re,sys,math,numpy,string import damask diff --git a/processing/post/postResults.py b/processing/post/postResults.py index 77b20d192..ed76cfd10 100755 --- a/processing/post/postResults.py +++ b/processing/post/postResults.py @@ -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 damask diff --git a/processing/post/showTable.py b/processing/post/showTable.py index bf2dfaefa..01f6f0a7d 100755 --- a/processing/post/showTable.py +++ b/processing/post/showTable.py @@ -1,4 +1,5 @@ #!/usr/bin/env python +# -*- coding: UTF-8 no BOM -*- import os,sys,string,damask from optparse import OptionParser diff --git a/processing/post/sortTable.py b/processing/post/sortTable.py index d647b3db7..feef39d16 100755 --- a/processing/post/sortTable.py +++ b/processing/post/sortTable.py @@ -1,4 +1,5 @@ #!/usr/bin/env python +# -*- coding: UTF-8 no BOM -*- import os,re,sys,string,numpy,damask from optparse import OptionParser, Option diff --git a/processing/post/stddevDown.py b/processing/post/stddevDown.py index 50d57e816..103323437 100755 --- a/processing/post/stddevDown.py +++ b/processing/post/stddevDown.py @@ -1,4 +1,5 @@ #!/usr/bin/env python +# -*- coding: UTF-8 no BOM -*- import os,re,sys,math,string,numpy,damask,time from optparse import OptionParser, Option diff --git a/processing/post/tagLabel.py b/processing/post/tagLabel.py index 33e02ae8c..a5a40575b 100755 --- a/processing/post/tagLabel.py +++ b/processing/post/tagLabel.py @@ -1,4 +1,5 @@ #!/usr/bin/env python +# -*- coding: UTF-8 no BOM -*- import os,re,sys,math,string,damask from optparse import OptionParser, Option diff --git a/processing/post/vtk2ang.py b/processing/post/vtk2ang.py index c9bf7244b..b9571f4af 100755 --- a/processing/post/vtk2ang.py +++ b/processing/post/vtk2ang.py @@ -1,6 +1,6 @@ #!/usr/bin/env python -# -*- coding: utf-8 -*- -# +# -*- coding: UTF-8 no BOM -*- + import os,numpy,string,math,sys from optparse import OptionParser, Option diff --git a/processing/post/vtk_addData.py b/processing/post/vtk_addData.py index 4402da0b5..9c30944ef 100755 --- a/processing/post/vtk_addData.py +++ b/processing/post/vtk_addData.py @@ -1,4 +1,5 @@ -#!/usr/bin/env python +#!/usr/bin/env python +# -*- coding: UTF-8 no BOM -*- import os, sys, string, glob, re import damask diff --git a/processing/post/vtk_addPointcloudData.py b/processing/post/vtk_addPointcloudData.py index 49e13974c..9faae392e 100755 --- a/processing/post/vtk_addPointcloudData.py +++ b/processing/post/vtk_addPointcloudData.py @@ -1,4 +1,5 @@ #!/usr/bin/env python +# -*- coding: UTF-8 no BOM -*- import os,sys,string,re,numpy,vtk import damask diff --git a/processing/post/vtk_addVoxelcloudData.py b/processing/post/vtk_addVoxelcloudData.py index 8c8049e47..d0c4d8122 100755 --- a/processing/post/vtk_addVoxelcloudData.py +++ b/processing/post/vtk_addVoxelcloudData.py @@ -1,4 +1,5 @@ #!/usr/bin/env python +# -*- coding: UTF-8 no BOM -*- import os,sys,string,re,numpy,vtk import damask diff --git a/processing/post/vtk_pointcloud.py b/processing/post/vtk_pointcloud.py index bd011f42f..1c4f16509 100755 --- a/processing/post/vtk_pointcloud.py +++ b/processing/post/vtk_pointcloud.py @@ -1,4 +1,5 @@ #!/usr/bin/env python +# -*- coding: UTF-8 no BOM -*- import os,sys,string,re,numpy,vtk import damask diff --git a/processing/post/vtk_scalars2vectors.py b/processing/post/vtk_scalars2vectors.py index 7e4100e4b..8c9d6e5cf 100755 --- a/processing/post/vtk_scalars2vectors.py +++ b/processing/post/vtk_scalars2vectors.py @@ -1,4 +1,5 @@ -#!/usr/bin/env python +#!/usr/bin/env python +# -*- coding: UTF-8 no BOM -*- import os, sys, string, re, shutil from optparse import OptionParser diff --git a/processing/post/vtk_voxelcloud.py b/processing/post/vtk_voxelcloud.py index 6adc42160..921b75dbc 100755 --- a/processing/post/vtk_voxelcloud.py +++ b/processing/post/vtk_voxelcloud.py @@ -1,4 +1,5 @@ #!/usr/bin/env python +# -*- coding: UTF-8 no BOM -*- import os,sys,string,re,numpy,vtk import damask diff --git a/processing/pre/geom_addPrimitive.py b/processing/pre/geom_addPrimitive.py index 031f03218..eb57cf58a 100755 --- a/processing/pre/geom_addPrimitive.py +++ b/processing/pre/geom_addPrimitive.py @@ -1,5 +1,6 @@ #!/usr/bin/env python # -*- coding: UTF-8 no BOM -*- +# -*- coding: UTF-8 no BOM -*- import os,sys,string,re,math,numpy import damask diff --git a/processing/pre/geom_fromVoronoiTessellation.py b/processing/pre/geom_fromVoronoiTessellation.py index 43d2d8b11..a6f7a20b8 100755 --- a/processing/pre/geom_fromVoronoiTessellation.py +++ b/processing/pre/geom_fromVoronoiTessellation.py @@ -1,5 +1,4 @@ #!/usr/bin/env python -# -*- coding: utf-8 -*- import os,sys,math,string,re,numpy import damask diff --git a/processing/pre/mentat_pbcOnBoxMesh.py b/processing/pre/mentat_pbcOnBoxMesh.py index 67a768ca0..afb658068 100755 --- a/processing/pre/mentat_pbcOnBoxMesh.py +++ b/processing/pre/mentat_pbcOnBoxMesh.py @@ -1,5 +1,5 @@ #!/usr/bin/env python -# -*- coding: UTF-8 no BOM -* +# -*- coding: UTF-8 no BOM -*- import sys,os,pwd,math,re,string,numpy, damask from optparse import OptionParser diff --git a/processing/pre/seeds_fromGeom.py b/processing/pre/seeds_fromGeom.py index 2475bca4d..1ff094210 100755 --- a/processing/pre/seeds_fromGeom.py +++ b/processing/pre/seeds_fromGeom.py @@ -1,4 +1,5 @@ #!/usr/bin/env python +# -*- coding: UTF-8 no BOM -*- import os,sys,string,numpy,damask from optparse import OptionParser, Option