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
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
Martin Diehl
fd9801ba09
StringIO not needed
2019-05-29 19:44:38 +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
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
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
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
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
af493cf9fd
using class
...
needs more memory, but should be faster and is better readable
2019-05-26 21:32:08 +02:00
Martin Diehl
99da46fda8
polished
2019-05-26 20:36:41 +02:00
Martin Diehl
657a30c2f5
using new functionality
2019-05-26 18:51:27 +02:00
Martin Diehl
feb2340935
self-reporting functionality for updating
2019-05-26 17:58:54 +02:00
Martin Diehl
34f7bbe2a0
'blank' option does not fit to flow of script
...
seeds_fromRandom -N 1 | geom_fromVoronoiTessellation -g 30 30 30 -s 1 1 1 > file.geom
or a few lines of python code give the same results
2019-05-26 13:06:22 +02:00
Martin Diehl
e7b8ae08d0
polishing
2019-05-26 12:14:48 +02:00
Martin Diehl
974f67ffdc
no frills
2019-05-26 12:06:51 +02:00
Martin Diehl
be3513d1e0
polishing.
...
python imports follow PEP8
2019-05-26 09:49:56 +02:00
Martin Diehl
a242382bed
Merge branch 'geometry-class' of magit1.mpie.de:/damask/DAMASK into geometry-class
2019-05-26 09:19:29 +02:00
Philip Eisenlohr
b13aa799c3
updated error message
2019-05-25 17:00:41 +02:00
Martin Diehl
c89d344236
polishing
2019-05-25 13:51:05 +02:00
Martin Diehl
2b7d95f800
was accidently commited
...
gives different results due to interpolation from scipy
2019-05-25 12:09:09 +02:00
Martin Diehl
c92969787a
geom Class was updated
2019-05-25 11:56:06 +02:00
Martin Diehl
94f85b7f33
better readable
2019-05-25 10:45:58 +02:00
Martin Diehl
fc1f65c34e
works for dtype='float'
2019-05-25 10:36:46 +02:00
Martin Diehl
875643c363
same style
2019-05-25 10:24:45 +02:00
Martin Diehl
17eb0d1b20
using new class
2019-05-25 08:48:44 +02:00
Martin Diehl
4788fc6046
making use of new class
...
@philip: 1D arrangement needed?
2019-05-25 08:37:02 +02:00
Martin Diehl
6c7f7c77da
specifying non-existing or invalid files is an user error
...
this is the standard behavior for common unix tools, no need to make an
exception here
2019-05-25 08:24:32 +02:00
Martin Diehl
cf374a04dc
using new class
2019-05-25 08:21:00 +02:00
Martin Diehl
420abfa162
use new class
2019-05-24 22:34:27 +02:00
Philip Eisenlohr
eb13fbc0ce
streamlined geom-info reporting; added --float option to some scripts; hardened against NaN; "microstructures" now reports uniques not max
2019-05-23 13:03:24 -04:00
Philip Eisenlohr
e6cec6ecbe
added option to reverse inside/outside of primitive body
2019-05-23 12:49:03 -04:00
Martin Diehl
ed7423a3d6
bug fixes
2019-03-10 08:16:01 +01:00
Martin Diehl
67619fa92a
consistent definition of axis angle
2019-03-09 20:18:28 +01:00
Martin Diehl
b84d4f1b6a
improved error handling/clearer messages
2019-03-05 10:58:57 +01:00
Philip Eisenlohr
e030038b73
[skip ci] added --blank option to create fresh canvas (from nothing)
2019-02-27 19:37:38 -05:00
Eureka Pai
e401c21266
dropped obsolete option --inplace from geom_check
2019-02-25 18:30:45 -05:00
Martin Diehl
e88182b007
improved converte, now with test
...
still needs to figure out how +P is handled
2019-02-24 14:39:34 +01:00
Martin Diehl
0d7fd587e3
direct translation from DREAM.3D to DAMASK geom
...
needs test
2019-02-24 12:59:10 +01:00
Martin Diehl
903edcd429
do not patronize the user, rather give hints
2019-02-24 10:31:08 +01:00
Martin Diehl
d3ac3cc0f5
using new Orientation class
2019-02-24 08:34:20 +01:00
Martin Diehl
9dc8dff4b1
cleaning and adding compatibility layer
2019-02-23 22:35:04 +01:00
Martin Diehl
a8e8b75cc0
use new rotation class
2019-02-23 22:13:24 +01:00
Martin Diehl
fff377de7f
initial simplification.
...
Should be able to generate from table containing either <microstructure>
or <texture> and <phase>
2019-02-23 22:06:31 +01:00
Martin Diehl
b3455c825e
transition to new orientation class
...
forward-backward conversion quite stable
2019-02-23 21:49:05 +01:00
Martin Diehl
e4bb61c9d9
transition to new orientation class/DREAM.3D
2019-02-23 11:37:09 +01:00
Martin Diehl
93ae5cbd07
Merge remote-tracking branch 'origin/development' into 10-consistent-orientation-conversions-3
2019-02-22 23:05:36 +01:00
Satyapriya Gupta
3bec76e781
can now deal with 1x1x1 geoms
2019-02-19 12:06:46 -05:00
Martin Diehl
25727bfa52
using CamelCase
2019-02-19 10:32:18 +01:00
Martin Diehl
27ebe1f665
improved documentation
2019-02-17 08:17:40 +01:00
Philip Eisenlohr
dc133344b6
[skip ci] migrated to python3 compatibility
2019-02-14 18:44:06 -05:00
Philip Eisenlohr
742d58cfce
added ASCIItable tests to CI pipelining
2019-02-14 18:24:09 -05:00
Martin Diehl
608852df83
rotation paper has angle as last component
2019-02-12 10:58:38 +01:00
Martin Diehl
97ac437686
more user friendly constructors
2019-02-12 08:14:27 +01:00
Martin Diehl
ef3fc0b58a
bugfix: wrong array indexing
...
rotation of meshgrid tuple implemented
2019-02-12 07:42:46 +01:00
Martin Diehl
48b0307fab
using new rotation class
...
cannot rotate matrices (3,3) and (3,3,3,3) at the moment
2019-02-12 00:27:13 +01:00
Martin Diehl
da115ca9d4
probably never used and outdated (python2.7)
...
doing the same conversion via DREAM.3D will be available soon
2019-01-16 17:51:37 +01:00
Martin Diehl
c5dabbb68f
correct comment sign
...
the # indicates the end of a list
2019-01-09 16:31:00 +01:00
Martin Diehl
0dca8d2740
compatible to python 3 and mentat >= 2017
2019-01-09 16:28:21 +01:00
Philip Eisenlohr
9bdd4d1d68
added <!skip> line to stop config parser from trying to interpret rest of geom description---huge speedup!!
2018-12-20 17:22:29 -05:00
Martin Diehl
5d7f930592
math.isclose does not exist for older versions
...
np.isclose does the same
2018-12-17 20:04:16 +01:00
Martin Diehl
e8f4dc4c9f
Merge branch 'orientationClass_with_negative_P' into development
2018-12-06 07:26:08 +01:00
Martin Diehl
ee7e4ee0d9
python3 has different encoding syntax
2018-12-06 06:27:07 +01:00
Philip Eisenlohr
a6d4c73de0
added list of map and introduced "quat" keyword in quaternion init
2018-12-05 10:20:05 -05:00
Philip Eisenlohr
c0f7ae2798
updated scripts that still used formerly valid object properties of quaternions
2018-12-05 09:07:29 -05:00
Philip Eisenlohr
1d7172c971
adopted more intutitive alternative of P=-1 from Rowenhorst_etal2015
2018-12-04 17:05:35 -05:00
Martin Diehl
7c1e2e256c
os.urandom returns byte, not string in python3
2018-11-24 10:07:47 +01:00
Martin Diehl
d53b01ab56
also works for python3
2018-11-18 08:04:52 +01:00
Martin Diehl
015e819d4c
python3 does not allow to compare tuple/list with int
2018-11-17 09:29:05 +01:00
Martin Diehl
82861e80bc
more python3 related changes
2018-11-17 08:46:58 +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
50f880afd1
more scripts working with python3
2018-11-16 19:32:17 +01:00
Martin Diehl
9922f5f646
adjusted to python3
...
translate is more complicated now:
https://stackoverflow.com/questions/41708770
2018-11-16 12:23:45 +01:00
Martin Diehl
a3647cc587
more files with confirmed python3 compatibility
2018-11-16 09:03:12 +01:00
Martin Diehl
e9e3fef8d4
more python3 compatible scripts
2018-11-15 16:40:54 +01:00
Martin Diehl
a00d15b889
geom files are not labeled
2018-09-29 11:18:35 +02:00
Martin Diehl
8616a92309
unused module
2018-07-20 03:50:07 +02:00
Martin Diehl
24d1528e04
on the way to full python 3 compatibility
2018-07-20 03:31:46 +02:00
Martin Diehl
784ae28dbb
now working with python 3
2018-07-20 00:39:50 +02:00