Commit Graph

27 Commits

Author SHA1 Message Date
Philip Eisenlohr 255a465e8b sharpened error detection and reporting 2017-08-16 15:18:29 -04:00
chen 4e8bd83d4b syntax error fix 2016-10-07 15:32:10 -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 017c08a7bb syntax fix 2016-09-09 07:28:31 -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 6db0a42eae addvtk data now support tensor type (9 components) 2016-09-01 12:47:26 -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 fa5ebdd46b added correct metavar 2016-05-13 09:43:56 +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 13e214fe18 added support for legacy VTK format 2016-04-18 15:08:29 -04:00
Philip Eisenlohr 1994b5a4c1 removed debug messages 2016-04-13 19:29:04 -04:00
Philip Eisenlohr ea0bc80af9 modernized to reflect rectilinearGrid processing. Now supports vector data and in-place adding. 2016-04-13 18:03:40 -04:00
Martin Diehl 98476ea29c more improved scripts 2016-03-01 21:35:59 +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
Martin Diehl f4d4a8e1ec adopted philips changes for reporting, using pyflakes to clean up 2015-09-24 09:24:42 +00:00
Martin Diehl 6604d0f8e8 polishing 2014-12-18 19:26:52 +00:00
Philip Eisenlohr 7136db1fd8 fixed syntax error: ’options.error’ —> ‘parser.error’ for error handling 2014-11-18 15:20:57 +00:00
Martin Diehl afb9a2186b removed explicit default setting: type='string' and action='store' 2014-09-12 14:14:55 +00:00
Martin Diehl c7837e1f66 changed manual input/output close to class method 2014-08-22 16:58:53 +00:00
Martin Diehl 342ca0be47 tested new scripts to update shebang, all files got same shebang (and for python files encoding) 2014-04-01 18:41:14 +00:00
Philip Eisenlohr e4cea31a9d small bug fix: options.error --> parser.error 2013-12-09 15:58:35 +00:00
Philip Eisenlohr b63d2eafe8 new scripts for:
-generating vtk point cloud from x,y,z ASCIItable data
-adding scalar values and color tuples from ASCIItable to vtk point cloud
-permuting data in ASCIItable columns (used to shuffle ordered grain indices)
2013-11-26 20:19:27 +00:00