Philip Eisenlohr
7c71530eca
slightly more picky in what exceptions to catch, now complain when losing all labels
2018-09-27 14:21:17 -04:00
Philip Eisenlohr
273874d3fb
slightly more picky in what exceptions to catch, now complain when losing all labels
2018-09-27 14:19:10 -04:00
Philip Eisenlohr
4f5e96d366
column label given as integer always returns dimension=1
...
used to return full dimension if first column of a multidim object was referenced by number
2017-08-28 19:32:13 -04:00
Martin Diehl
5d4f272f03
__slots__ cause problems with python3
2017-08-01 02:43:23 +02:00
Philip Eisenlohr
80191c10c0
absorb some more errors caused by broken shell pipes
2016-12-25 12:41:06 -05:00
Philip Eisenlohr
7ebd688885
return type-safe indexrange (for invalid queries)
2016-11-29 14:35:30 -05:00
Philip Eisenlohr
dc988dd6b1
removed unneccesary line continuation
2016-11-24 09:37:27 -05:00
Martin Diehl
a04968d43f
Merge branch 'development' into negativeRange
2016-11-01 17:20:56 +01:00
Martin Diehl
8eb93a3274
python scripts now pack "a a-1 a-2 ... a-n" to "a to a-n"
2016-10-29 10:49:40 +02:00
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