Commit Graph

43 Commits

Author SHA1 Message Date
Martin Diehl eb033e11b2 polishing 2019-11-27 08:44:38 +01:00
Martin Diehl 2d96136a0d more general constructor for Table
reading from file is just one case (now handled by static method).
General constructor needs data and header information as dictionary.
Works only with python 3.7 where dict keeps the insertion order. Earlier
python versions/other implementations might fail.
2019-11-26 22:53:46 +01:00
Martin Diehl 845cfc34ec similar logic as in geom class
- filename is not part of the object
- transparent handling of files, strings, and path-like objects for file
IO
2019-11-26 14:26:25 +01:00
Martin Diehl fb286af354 [skip sc] first draft 2019-10-31 10:47:40 +01:00
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 35e470ff4d needed for python3 2018-07-19 16:19:05 +02:00
Martin Diehl 95c0179945 labeling vectors and values independenty in addSpectralDecomposition 2017-08-13 02:14:34 +02:00
Martin Diehl 8a94f55a2e python 3 compatibility 2016-10-25 06:44:12 +02:00
Philip Eisenlohr 0bbf54e0e4 switched to string.format() method 2016-07-29 17:49: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
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 6100185855 switch to new ASCII table class was buggy, using damask.util.emph 2015-08-31 11:00:45 +00:00
Martin Diehl 1149053c61 updated to new ASCII table style 2015-08-12 20:59:10 +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 59e546e3d7 improved help for automatic documentation and simplified some scripts 2015-05-09 12:45:30 +00:00
Martin Diehl 6604d0f8e8 polishing 2014-12-18 19:26:52 +00:00
Martin Diehl f2c4db0bb5 correcting help and default, some comments 2014-09-12 14:46:12 +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 f72a87f94b polished scripts (option parser, numpy) 2014-07-09 10:07:24 +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
Christoph Kords e10f8f1b5e corrected typo 2014-03-04 16:43:22 +00:00
Martin Diehl 27c83f60a6 fixed typo 2014-02-26 15:05:34 +00:00
Philip Eisenlohr 7f08c976c3 skip file if mandatory column not found in ASCIItable 2014-02-26 14:56:06 +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
Philip Eisenlohr fb7adf7b89 adopted use of general damask package 2011-12-15 08:53:18 +00:00
Philip Eisenlohr 18a09d7cff corrected handling of STDIN|STDOUT
adopted ASCII_TABLE class
2011-11-24 14:48:02 +00:00
Claudio Zambaldi 06176873e4 after a somewhat lengthy discussion with Philip about usability and developability and general file-naming philosophy we think that we found a compromise on the "to-dot-py or not-to-dot-py" issue:
symlinks in DAMASK_ROOT/bin do not carry the extension, but the source files do.
Hope that results in the maximum number of happy developers and users.
2011-11-09 15:37:45 +00:00