Martin Diehl
60feb96afd
let vtk decide on the file extension
2019-03-09 11:11:40 +01:00
Eureka Pai
2089726800
corrected output extension of vtk files to reflect binary format
2019-02-25 18:48:40 -05:00
Martin Diehl
43a451b2e1
inplace not useful
...
use shell script if you want to keep an backup of your old data
2019-02-18 14:36:04 +01:00
Martin Diehl
889cfc8ba0
vtk script only work with python3 on new testing
2019-02-14 01:39:54 +01:00
Philip Eisenlohr
91c70fc823
sharpened error detection and reporting
2017-08-16 12:51:32 -04:00
chen
2f2490e784
remove unused import
2016-10-14 10:48:08 -04:00
chen
353b5b6994
avoid doctring as argument
2016-10-14 10:42:03 -04:00
chen
f3308dbef6
replace scalar/vector option with data
...
vtk does not care 1D data array length
2016-09-14 19:59:26 -04:00
chen
ae16ccae61
need to use deep copy when converting np array to vtk array
...
for batch array conversion, it is necessary to use the deep copy to ensure numpy_support.numpy_to_vtk works as it should.
2016-09-14 15:06:00 -04:00
chen
53d2df6058
vector support 1D vector with arbitrary lenght
...
simple hack to bypass the size check for vectors since vtk does not care the vector size.
2016-09-14 12:37:07 -04:00
Chen
8c4767d58c
syntax fix
2016-09-09 07:28:54 -04:00
chen
da538fbce9
speed up of VTK data transformation
2016-09-08 18:05:49 -04:00
Chen
a2f3839ca8
add missing numpy import
2016-09-02 14:37:15 -04:00
chen
d9077805e4
Forced symetric tensor when adding tensor to vtk
...
VTK addTensor by default using the lower triangle to populate its tensor object. Enforcing the tensor to be symmetric to avoid necessary confusion when adding data (most stress/strain tensor should symmetric by default, so it should not affect the results)
2016-09-02 09:30:49 -04:00
Chen
20d1164e5d
add tensor support for vtk_addRectlinearGridData
2016-09-01 16:57:29 -04:00
Martin Diehl
cd63a92733
using python 2.7 has shebang will also work on mac without symlink
...
unless someone uses the 6 year old python 2.6, this should be save
2016-07-18 19:35:35 +02:00
Martin Diehl
a21e8cd863
usind explicitly python2 to run in environments with python 3 as default
2016-05-11 11:01:39 +02:00
Philip Eisenlohr
cbe9afb2b3
removed --mode option. script figures on its own.
2016-04-15 14:06:01 -04:00
Philip Eisenlohr
feae2164fc
polishing and now explicitly closing input table.
2016-04-13 17:48:49 -04:00
Philip Eisenlohr
6197e839c9
fixed missing file extension when adding in-place
2016-03-15 14:52:10 -04:00
Martin Diehl
f77de7ac6e
adjusting style (mainly long lines an "== None")
2016-03-02 10:52:24 +01:00
Martin Diehl
2a50c6bf86
using prospector --tool=dodgy --tool=pyflakes -M to find python flaws
2016-03-01 18:25:14 +01:00
Martin Diehl
7c9d344601
python files now report their version depending on VERSION file in $DAMASK_ROOT
2016-01-27 17:06:00 +00:00
Philip Eisenlohr
35202494c2
fixed issue caused by using -r twice as option label.
2015-12-04 04:33:23 +00:00
Philip Eisenlohr
55b33e5597
added option “inplace” to directly modify VTK file instead of creating copy_added.
2015-12-02 23:10:14 +00:00
Philip Eisenlohr
2c9f9981e2
polishing of addRectiliearGridData.
...
subsumed functionality of addVoxelgridData into it.
2015-11-10 01:49:32 +00:00
Martin Diehl
f4d4a8e1ec
adopted philips changes for reporting, using pyflakes to clean up
2015-09-24 09:24:42 +00:00
Philip Eisenlohr
d8afe9be23
Add scalars, vectors, and/or an RGB tuple from an ASCIItable to existing VTK rectilinear grid (.vtr/.vtk).
2015-08-25 00:39:37 +00:00