Commit Graph

68 Commits

Author SHA1 Message Date
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
Martin Diehl fa1368204d fixed bug in asciitable when updating labels for readArray, fixed checking for euler angels presence in tessellation, improved help 2015-05-14 17:07:50 +00:00
Martin Diehl b60f868a76 renumbering asciitable when readArray for selected columns only
test no longer for deleteColumn
2015-05-10 11:29:11 +00:00
Philip Eisenlohr d5e2e42f21 file handle closing can now be done from within class.
methods:
.input_close()
.output_close()
2014-08-22 15:37:46 +00:00
Martin Diehl a8ced53b59 fix for the fix. now both, single column and single line files are working 2014-08-07 08:51:25 +00:00
Martin Diehl 1402527f48 fixed nasty bug cause strange behavior for voronoi tessellation 2014-08-06 19:32:26 +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 4e5803fc36 forgot to clear readBuffer upon data_rewinding... 2014-02-06 16:37:45 +00:00
Philip Eisenlohr ccb950f3d8 checked Unix command piping conformity -- seems to now work:
seeds_fromRandom |
geom_fromVoronoiTessellation |
geom_grainGrowth |
geom_unpack |
geom_pack

However, grainGrowth functionality seems broken...
2014-02-03 23:44:29 +00:00
Martin Diehl 83e4bc3247 updated test for restart, now also checking if number of increments is the same
fixed output of test class
fixed small bug? in asciitable.py, @philip: please check
2014-02-03 19:30:28 +00:00
Martin Diehl 2f1db8f69a introduced delimiter option (default = tab) for ascii table output, use space for geometry files 2013-12-17 08:16:29 +00:00
Philip Eisenlohr e20ffb379d changed numpy.readtxt logic from "data_asArray" returning a copy to inplace "data_readArray" now directly storing into self.data 2013-12-14 03:51:22 +00:00
Philip Eisenlohr 0e84db8f19 improved stability of xxx_append commands when dealing with iterable content 2013-12-12 02:36:05 +00:00
Philip Eisenlohr 9c7335f799 bug fix: wrong variable name "label" --> "labels" 2013-12-11 14:38:09 +00:00
Philip Eisenlohr c1b5b802ec fixed problem of adding strings in "data_append" resulting in infinite recursion.
more gracefully check for problems.
numpy.loadtxt now correctly transposes single column of data.
2013-12-09 15:45:18 +00:00