Commit Graph

82 Commits

Author SHA1 Message Date
Martin Diehl 8a94f55a2e python 3 compatibility 2016-10-25 06:44:12 +02:00
Philip Eisenlohr ff2f827a68 strip outermost quotes from labels 2016-10-18 15:33:24 -04:00
Martin Diehl fbacdd8e6d Merge branch 'development' of magit1.mpie.de:damask/DAMASK into development 2016-09-11 19:17:35 +02:00
Philip Eisenlohr 6bdce9b332 fixed error for completely empty label list in read_array 2016-08-11 14:22:07 -04:00
Martin Diehl 759126b906 compatible to python3 2016-07-03 11:44:01 +02:00
Aritra Chakraborty 8d6c601a45 fixed python flake complaints. 2016-05-16 20:17:17 -04:00
Aritra Chakraborty 1c36380a8a fixed typo... 2016-05-16 20:05:57 -04:00
Aritra Chakraborty dc6260be58 changed "labels" property to "tags". added method to inquire about (abstract) labels, i.e. interpreting the tag list to distill underlying label "meaning". 2016-05-16 19:54:00 -04:00
Martin Diehl 7f24fe15ed removed svn ID from python files 2016-05-11 11:37:59 +02:00
Philip Eisenlohr 5d4d78b079 expanded functionality to treat (white space-containing) strings and empty ("") data. 2016-04-28 23:11:06 -04:00
Philip Eisenlohr 45e237058b fixed malfunctioning table.label_indexrange(listOfLabels). can now be used as numpy slice. 2016-04-24 10:07:37 -05:00
Philip Eisenlohr 54dec3ea2a remove CR and LF from labels and info lines. Can happen if multiline shell input is parsed... 2016-04-20 15:46:39 -04:00
Philip Eisenlohr da29b1a361 removed line continuation characters (not needed within parentheses) 2016-04-05 13:29:36 -04:00
Philip Eisenlohr 73640587d5 fixed buggy query-by-label-index 2016-03-27 16:26:51 -04:00
Philip Eisenlohr 8cd1f027b3 bug fixing. 2016-03-21 08:51:56 -04:00
Philip Eisenlohr a41cd3df40 added "strict" option to reading microstructure from geom file. will now complain if data mismatches with grid. 2016-03-20 16:46:35 -04:00
Zhuowen Zhao d42f8d5fd4 added possibility to read real numbers as microstructure indices (not only integers) 2016-03-17 17:42:05 -04:00
Martin Diehl a4bbdd5ecb further commenting, removing not used variables and code (marc2vtk) 2016-03-04 19:06:36 +01:00
Martin Diehl 120b2b8bd2 added test for hybridIA 2015-12-22 22:17:15 +00:00
Martin Diehl 0cfe35dfe6 consistently removing leading and trailing whitespace 2015-12-22 15:59:01 +00:00
Martin Diehl 161e637ba6 not needed any more (at more usefull position in damask.util) 2015-11-30 16:30:35 +00:00
Philip Eisenlohr 2b5cb08c4d new method “head_putGeom” translates info-array into geom-description 2015-11-14 01:48:16 +00:00
Philip Eisenlohr 519484233c can now deal with “empty” header line.
example:
# some comment
# further stuff
1_dim 2_dim
34 33
1 22

would work with “labeled”=True and stores the first two lines as “info”.
2015-11-03 21:14:45 +00:00
Martin Diehl e72ae63873 geom canvas crashed for some parameters, now giving error message. table class now handles dismiss correctly 2015-10-14 21:35:56 +00:00
Philip Eisenlohr 26f8f74310 undone np.unique of columns since this would introduce the unwanted side-effect of (messily) sorting columns. user expects to get sorting as provided through command line. 2015-10-09 12:55:30 +00:00
Martin Diehl 851d2e1b2c prevent to load columns more than once\n @Philip: OK? 2015-10-08 17:47:00 +00:00
Philip Eisenlohr 801d57af4c fixed buggy behavior caused by assigning string instead of single-item list to readBuffer. 2015-10-07 01:03:26 +00:00
Martin Diehl 95a8b54996 buggy behavior when read buffer contained string (len > 0, but no pop() method)
@Philip: please check if intended behavior
2015-10-06 16:19:37 +00:00
Philip Eisenlohr e089e60202 transparently deal with one-dimensional array output 2015-09-30 18:44:54 +00:00
Philip Eisenlohr b2243ae3c1 small polishing 2015-09-29 22:25:57 +00:00
Martin Diehl 6a3a0f3859 allow asciitable to use file handle instead of string (following e.g. numpy.genfromtxt) 2015-09-16 19:44:11 +00:00
Martin Diehl 5f9fae1b75 simplified reporting using "emph" 2015-09-11 12:55:43 +00:00
Tias Maiti 7495b33b68 label_dimension dropped indices >9 due to buggy string comparison… 2015-09-08 23:12:45 +00:00
Philip Eisenlohr 858fe7e897 prevent closing sys.stdin or sys.stdout 2015-08-24 00:40:52 +00:00
Philip Eisenlohr 7ceb7f7614 fixed problem when reading single label through data_readArray 2015-08-23 23:18:34 +00:00
Philip Eisenlohr 6ba76c3832 introduced public line object holding currently read data line as string.
label_append now has option to overwrite (reset=True) labels that were read originally.
data_writeArray maintains full significant digit representation as default.
2015-08-20 19:38:06 +00:00
Philip Eisenlohr 93dd9f5c09 bug fix regarding self.tmpext.
added check for access rights when overwriting original file.
2015-08-12 18:41:44 +00:00
Philip Eisenlohr 64515d7aca simplified interface:
name == None: read from stdin
outname == None and not readonly mode: do in-place substitution of name (with transparent file renaming upon table.close)
2015-08-12 17:42:38 +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
Chen Zhang 08f4495721 changed readArray default behavior to reading always scalars when columns are referenced by number 2015-07-21 20:44:40 +00:00
Philip Eisenlohr c46e639a38 fixed bug preventing first line to be read when using readArray without labels. 2015-07-09 03:40:15 +00:00
Philip Eisenlohr 16edd1693d now only trying to close input and output tables.
corrected buggy behavior in case no columns found in data_readArray.
2015-06-19 06:08:09 +00:00
Philip Eisenlohr 3d7dfba40a syntax polishing 2015-06-13 11:43:34 +00:00
Philip Eisenlohr 48f31f13a6 label_index now transparently searches for “1_”+label if label itself not found.
added label_dimension method returning the dimension of the requested object, i.e. 1, 3, or 9 as typical outcomes.
2015-06-08 05:02:11 +00:00
Philip Eisenlohr 83d5686995 added check before trying to delete/dismiss file 2015-06-06 11:18:39 +00:00
Philip Eisenlohr 5adbe74b10 changed library function name table.labels_index() to table.label_index() 2015-06-05 11:44:17 +00:00
Philip Eisenlohr 4bd44f8e43 better robustness against scalar arguments and “None”. 2015-05-21 21:53:54 +00:00
Philip Eisenlohr 99adf42f0f improved robustness of labels_index determination.
fixed errors in data_readArray and improved functionality. Can now cope with list of columns. reads all valid columns returning list of invalid ones. updates table.labels accordingly.
2015-05-21 00:02:32 +00:00
Philip Eisenlohr 06f017effa added possibility to dismiss (delete) output file upon closing an ASCIItable.
“None” labels are disregarded in labels_index() method.
2015-05-19 21:11:49 +00:00
Philip Eisenlohr 9f569d04c6 added “.close()” method to close input and output at the same time.
accept header only if space present between number and “head” string.
2015-05-19 20:35:56 +00:00