Martin Diehl
37de73535d
following PEP style guide
2019-05-30 20:08:39 +02:00
Martin Diehl
4cb0ba3803
not needed anymore
2019-05-30 19:26:41 +02:00
Martin Diehl
46f0ad052e
direct support for vtk output
...
- geom_check can now handle multiple files
- microstructure index is stored as integer in vtk file
2019-05-30 15:35:45 +02:00
Martin Diehl
08052737cf
if grid is an option, it is a tuple
...
tuples do not have the prod() function
2019-05-30 14:28:31 +02:00
Martin Diehl
c2a5f37818
round to reasonable precision
...
without symmetry, there are 36000**3 = 46656000000000 orientations
2019-05-30 14:11:54 +02:00
Martin Diehl
bf60cffab5
cleaning
2019-05-30 14:07:49 +02:00
Martin Diehl
d0c7f8b934
texture is typically the more interesting information
...
therefore, but it to the top
2019-05-30 14:05:45 +02:00
Martin Diehl
8380071564
using geom class
...
- dropped the use of the material class as it does not allow to have
empty phase and crystallite. The material.config class needs a severe
refurbishing (no crystallite, use orderedDict instead of hand written
solution, drop of texture components). Probably best solution is to
postpone this until we have a yaml/json reader for Fortran.
2019-05-30 13:30:38 +02:00
Martin Diehl
7d07a3752f
polishing
2019-05-30 13:30:18 +02:00
Martin Diehl
b00581f1be
less picky on allowed datatypes
2019-05-30 13:29:29 +02:00
Martin Diehl
461611cde7
polishing
2019-05-30 11:26:47 +02:00
Martin Diehl
49c3903cc7
explicit loop for simpler code
...
- no invalid combintations any more (allow to move the original
microstructure out of the new canvas)
- handling of origin needs discussion. When we want to recover the old
behavior, the origin might be located outside of the new geometry
2019-05-30 11:26:07 +02:00
Martin Diehl
e974bb9c43
similar structure for building blocks
2019-05-30 10:45:17 +02:00
Martin Diehl
510b55df50
several improvements
...
- more error checking
- order of points can be arbitrary also for microstructure input
- grouping of same orientation/phase combinations
2019-05-30 10:33:01 +02:00
Martin Diehl
931fa9d36a
standardized and cleaned
...
-write to file if given
-type casting is done in the geom class
2019-05-30 10:20:07 +02:00
Martin Diehl
07276d511c
modern python formatting
...
- 2 digits should be precise enough for euler angles
- no need to pad grain ID with leading zeros
2019-05-30 10:03:55 +02:00
Martin Diehl
73df615ff3
numpy meshgrid can do this now
2019-05-30 09:45:30 +02:00
Martin Diehl
4e0e5a2329
new python formatting style
2019-05-30 09:41:22 +02:00
Martin Diehl
f30eda0267
no need to loop over files
...
will procude the same file over and over again
2019-05-30 09:32:37 +02:00
Martin Diehl
c5daa7e577
update tests
...
-using separte PRIVATE branch geometry-class, not master
2019-05-30 09:19:16 +02:00
Philip Eisenlohr
cdc8338347
full (not periodic) mirroring is geom_mirror default behavior
2019-05-29 20:22:29 -06:00
Philip Eisenlohr
d79f0c6290
replace geom_canvas --blank with geom_fromScratch
2019-05-29 20:02:06 -06:00
Philip Eisenlohr
17168525b6
use srepr in __repr__
2019-05-29 18:14:30 -06:00
Martin Diehl
fd9801ba09
StringIO not needed
2019-05-29 19:44:38 +02:00
Martin Diehl
6e790e845a
correct rescaling
2019-05-29 19:36:02 +02:00
Martin Diehl
d7e8a66746
polishing
2019-05-29 14:18:11 +02:00
Martin Diehl
16bd5294aa
loop order as intented
2019-05-29 14:06:39 +02:00
Martin Diehl
78f30684f8
moderized
...
needs some polishing with respect to array orders
2019-05-29 09:40:56 +02:00
Martin Diehl
6836a2eae8
better readable
2019-05-29 08:04:01 +02:00
Martin Diehl
dfc2b47abc
better readable
2019-05-29 08:01:00 +02:00
Martin Diehl
8ee23b37b2
should not be part of the repo
2019-05-29 07:52:44 +02:00
Martin Diehl
bb6f54963a
save some memory (avoid copies if not needed)
2019-05-29 07:49:43 +02:00
Martin Diehl
9f68923038
restored old behavior
...
save some ressources by avoiding copies.
much slower than old version, better cast formula into meshgrid again
2019-05-29 07:38:11 +02:00
Martin Diehl
2eb964b1ea
simplified
...
needs some manual checking and proper test
2019-05-28 23:49:11 +02:00
Martin Diehl
669ca82ce1
formatted return message also on interactive shells
2019-05-28 09:05:10 +02:00
Martin Diehl
100a2031d3
[skip ci] no white space needed
2019-05-28 07:55:24 +02:00
Philip Eisenlohr
1f56ac6a4a
streamlining and bugfixing of geom-class
2019-05-27 22:45:34 -06:00
Martin Diehl
b69f0efbbc
improved and simplified reporting
2019-05-27 22:00:26 +02:00
Martin Diehl
59c6c5cfe4
not needed anymore
...
essentially, (gauss) is an Euler angle triplet
2019-05-27 10:49:50 +02:00
Martin Diehl
615a4ab40f
keep float datatype
...
based on the assumption, that no mixed float/int data is stored
2019-05-27 09:56:15 +02:00
Martin Diehl
6e06764e2d
using (enhanced) central functionality
2019-05-27 08:38:02 +02:00
Martin Diehl
d9ab87cfde
crystallite will be removed soon, error handling is done by geom class
2019-05-27 08:35:24 +02:00
Martin Diehl
5cf63bbbc3
vtk 7 is out for more than 3 years
2019-05-27 08:34:36 +02:00
Martin Diehl
b5cec797c0
cleaned
2019-05-26 23:03:31 +02:00
Martin Diehl
c8dfba89e5
using class
...
still a very complex script
2019-05-26 22:49:05 +02:00
Martin Diehl
0da39b0c69
copy and paste error
2019-05-26 22:08:42 +02:00
Martin Diehl
15d5a7ae28
don't access attributes directly
2019-05-26 22:08:14 +02:00
Martin Diehl
f251cdb746
simplified
2019-05-26 22:07:50 +02:00
Martin Diehl
0039ac9551
always add comment at beginning
...
usually, comments are related to the file history
2019-05-26 21:32:48 +02:00
Martin Diehl
af493cf9fd
using class
...
needs more memory, but should be faster and is better readable
2019-05-26 21:32:08 +02:00