Commit Graph

52 Commits

Author SHA1 Message Date
Martin Diehl 1cf9c59850 standardizing
import follows PEP style guide, encoding not needed for python3
2019-06-14 13:03:30 +02:00
Martin Diehl 29fc53fdcb more specific about invocation 2019-02-16 17:41:56 +01:00
Martin Diehl 558745b548 explicitly require python3
on older systems, python3 tpyically exists but python2 is the defaul
2018-11-17 08:12:12 +01:00
Martin Diehl fe2c7efa27 seem to work 2018-11-15 13:56:48 +01:00
Martin Diehl d138993c1d using util functionality to be compatible with python3 2018-07-19 16:12:36 +02:00
Martin Diehl 8a94f55a2e python 3 compatibility 2016-10-25 06:44:12 +02: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 745c012088 fully adopted code from addDisplacement 2016-06-29 20:09:42 +02:00
Martin Diehl af2404f0f8 no access out of bounds anymore (but incorrect results) 2016-06-27 23:27:30 +02:00
Martin Diehl 8307a4a9ab trying to get the last things work without the core module 2016-06-27 19:38:12 +02:00
Martin Diehl 259ee072a6 Merge branch 'development' into NoCoreModule 2016-06-27 15:35:46 +02:00
Aritra Chakraborty 8d6c601a45 fixed python flake complaints. 2016-05-16 20:17:17 -04:00
Aritra Chakraborty 515b8ee457 reworked use of "labels" property to proper methods for access. 2016-05-16 19:55:06 -04:00
Martin Diehl a21e8cd863 usind explicitly python2 to run in environments with python 3 as default 2016-05-11 11:01:39 +02:00
Martin Diehl d497503411 renamed options.coords/options.coordinates consistently to options.pos 2016-04-26 22:49:58 +02:00
Martin Diehl 8ec9243016 new label name 2016-04-21 11:06:39 +02:00
Martin Diehl 91753d5322 more style related changes 2016-04-15 00:35:21 +02:00
Martin Diehl 8b89063113 less core module 2016-03-24 14:19:00 +01:00
Martin Diehl 60a3ac5b04 copied fortran code 2016-03-24 12:35:33 +01:00
Martin Diehl 93d7643875 no long lines anymore and prospector is also happy 2016-03-03 14:44:29 +01:00
Martin Diehl e55d0ae3ca further attemps to make it conform with best python practice 2016-03-01 20:44:43 +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 5f9fae1b75 simplified reporting using "emph" 2015-09-11 12:55:43 +00:00
Martin Diehl 08f8746182 made some more scripts working again 2015-08-31 21:22:44 +00:00
Martin Diehl 6100185855 switch to new ASCII table class was buggy, using damask.util.emph 2015-08-31 11:00:45 +00:00
Philip Eisenlohr 63d5506388 adopting further simplifications provided through ASCIItable class. 2015-08-20 19:42:05 +00:00
Philip Eisenlohr d4e748b654 outsourced multiple repetitive functions into ASCIItable class.
changed ASCIItable API from file-handles to filenames.

adopted these changes in pre and post processing scripts.

unified behavior and look.

fixed bugs here and there.

improved functionality.
2015-08-07 19:03:26 +00:00
Martin Diehl 03fef5fd6e simplified option parsing 2015-05-15 13:49:16 +00:00
Martin Diehl 6a38b4396f simplified help 2015-05-15 13:34:52 +00:00
Martin Diehl 0dde6539ed renamed from 1_ip to 1_ipinitialcoord 2015-03-11 07:22:11 +00:00
Martin Diehl 271c9eed8b use 1_ip instead of ip.x
Old format still as fallback option to support legacy files
2015-03-09 12:52:43 +00:00
Martin Diehl 6604d0f8e8 polishing 2014-12-18 19:26:52 +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 649e637561 added some more post processing tests and improved output 2014-08-06 19:06:33 +00:00
Martin Diehl 938352d43a fixed calculation of size and dimension in case of 2D (was limited to third dim only)
plus polishing
2014-08-06 15:25:18 +00:00
Martin Diehl cbafad50d0 some more work on the postprocessing scripts, decreased test tolerance because spectral decomposition has rounding errors (depending on machine/python/numpy version) 2014-08-06 13:27:09 +00:00
Martin Diehl 7df8f04f65 updated test for postprocessing and improve some of the scripts 2014-08-04 17:53:41 +00:00
Martin Diehl 38048a09f2 introduced use of choice for argparse where applicable 2014-07-24 18:47:09 +00:00
Martin Diehl e5dc9e79cc some more changes improving the post processing scripts 2014-07-22 14:21:49 +00:00
Martin Diehl e8d2e787bc updated first 9 post processing scripts to latest ASCII table handling style 2014-07-21 19:55:05 +00:00
Martin Diehl e7c282a02d some further improvements on ASCII table handling 2014-07-10 09:27:51 +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
Martin Diehl e74b5da19a changed all remaining routines to fortran-fast arrays (geometry reconstruction etc.)
changed all remaining routines in f2py to more clever determination of array size (requires f2py >= 2.0)
enabled 3D visualize to work with odd resolution by switching to linear reconstruction
PLEASE NOTE: Redefinition of routines for f2py might cause trouble -> DELETE DAMASK_ROOT/lib/damask/core.so in this case
further changes: added pure statement where possible, polished, unified use of "Q" for "Quaternion" and reordered math to have similar routines together
2013-01-31 16:28:08 +00:00
Martin Diehl 96ba5ecae4 moved some more 'mesh related' functions for post processing from math.f90 to mesh.f90
f2py functions remaining in math.f90 now uses assumed size arrays in order to have simpler interfaces. This is only working with python 2.7!
changed python pre- and postprocessing scripts.
If you encounter any problems whith core modules, try to remove the old core.so in the lib/damask
2012-08-27 08:04:47 +00:00
Martin Diehl 17f644b261 new scripts to add deformed configuration to ASCII table and for generation of layered 2D geometries (EBSD)
addCompatibilityMismatch.py is now using functions from ASCII table library
2012-04-18 09:58:59 +00:00
Martin Diehl b153a762cb now using damask.core.math 2012-02-15 19:34:43 +00:00
Christoph Kords 51e8981ba3 not specifying the location of python executable directly, but rather getting it from $path, otherwise the scripts won't work on every machine 2012-02-07 13:09:10 +00:00