Martin Diehl
beb58b76f2
correctly handling ambiguity if Phi approx pi
2023-12-06 22:07:57 +01:00
Philip Eisenlohr
0704f1122e
result (and object interpretation) "flows" from rotation and data shapes
2023-09-19 17:50:28 -04:00
Philip Eisenlohr
0393bdb214
added broadcasting test for composite rotations
2023-08-17 21:21:16 +00:00
Martin Diehl
17ce0b9aec
more reasonable name
...
folder contains all test resources, not just reference results
2023-04-24 07:16:45 +02:00
Philip Eisenlohr
5edd001d4c
Option to normalize rotation matrix
2023-01-16 23:53:49 +00:00
Martin Diehl
dcdc4acbd5
Unified object.comments as list[str]; simplifications of Python code
2022-12-13 18:32:19 +00:00
Philip Eisenlohr
5127dfe90b
from/as tests use rotation-array; separate bounds checks
2022-12-05 02:08:31 +00:00
Philip Eisenlohr
ce4b373f9c
Merge branch 'development' into '225-tolerate-non-unit-quaternion'
...
# Conflicts:
# python/damask/_rotation.py
2022-11-18 00:48:45 +00:00
Philip Eisenlohr
1f947245bb
Merge branch 'development' into '225-tolerate-non-unit-quaternion'
...
# Conflicts:
# python/damask/_rotation.py
# python/tests/test_Rotation.py
2022-11-16 20:27:02 +00:00
Philip Eisenlohr
25979fcd77
Merge branch 'development' into 'polish-rotation-error-determination'
...
# Conflicts:
# python/damask/_rotation.py
2022-11-16 18:05:36 +00:00
Philip Eisenlohr
740965df7c
cleaner and more efficient determination of ValueErrors
2022-11-15 17:03:57 -05:00
Philip Eisenlohr
23d2337fb2
add option to normalize quaternions
2022-11-15 16:11:29 -05:00
Philip Eisenlohr
1dbf9ae9bc
increase test coverage to 100%
2022-11-15 11:46:52 -05:00
Martin Diehl
cdd3b44519
using more precise coefficients also in test
...
changes in _rotation.py are just cosmetic
2022-06-09 23:54:56 +02:00
Martin Diehl
06cef42927
use physical/ISO convention
2022-04-28 15:57:04 +02:00
Martin Diehl
a0455cadf3
consistently have input in radians
2022-04-28 15:46:19 +02:00
Martin Diehl
5c4d481155
common order is theta,phi
2022-04-28 01:33:33 +02:00
Philip Eisenlohr
378b8b2396
use consistent "shape" keyword when shape not clear from input data
2022-03-14 16:24:05 -04:00
Martin Diehl
ed50cd022b
shorter, potential for higher precision
...
np.sum has an better alogrithm but fails ...
2022-02-16 23:40:02 +01:00
Martin Diehl
6dcf6b972c
complaints from prospector (PEP8)
2022-02-02 09:14:41 +01:00
Martin Diehl
6657e5c4eb
testing a few corner cases
...
behavior for __eq__ is now following python standard, comparing to wrong
class gives False
2022-01-15 13:22:15 +01:00
Martin Diehl
e2e80b9706
cleaning tests
2021-11-16 11:24:04 +01:00
Martin Diehl
d5806075d4
distinguish isclose/allclose and __eq__
2021-04-05 22:15:03 +02:00
Martin Diehl
0461c404f7
numpy uses __array__ for casting
...
avoids infinite loop of __init__, __getitem__, and shape. Found on
8cf07f6113
2021-02-22 18:52:06 +01:00
Martin Diehl
f4247e0f35
simpler (and scipy compatible)
2021-01-13 09:35:42 +01:00
Philip Eisenlohr
2d6e6a2370
Rotation composition uses "*"; application of Rotation to object uses "@"; "apply()" works on both
2021-01-12 18:57:33 -05:00
Philip Eisenlohr
f0351e403a
removed duplicate test
2021-01-07 11:01:15 -05:00
Philip Eisenlohr
bde66d85fc
Merge branch 'development' into python-improvements
2021-01-07 10:58:33 -05:00
Philip Eisenlohr
94cfe28128
polishing help; Rotation.apply(Rotation) now acceptable.
2021-01-06 18:03:10 -05:00
Martin Diehl
acbb564afc
restored functionalitity for adding list.
...
got accidently lost
2021-01-04 07:23:14 +01:00
Martin Diehl
d8b4b7e0f5
!= and == work componentwise
2021-01-03 21:52:19 +01:00
Martin Diehl
f48a446353
compatible with scipy.spatial.transform.Rotation
...
also introduced inplace variants and '/' as multiplicative inverse of
'*'
2021-01-03 16:08:22 +01:00
Martin Diehl
98723cb0ed
need to handle special case of Re() = 0
...
ensuring that the real part is positive seems to be a good idea on first
sight, but it would be easier to simply acknowledge that qu = -qu
2021-01-03 15:50:15 +01:00
Martin Diehl
6fe1ff8e39
fixed test for rodrigues parametrization
...
for angle close to 180deg, the sign of the axis does not matter
2021-01-03 11:50:45 +01:00
Philip Eisenlohr
da62daf15d
added test for appending rotation lists; better check for type==list
2020-12-28 12:26:09 -05:00
Martin Diehl
0fdefa5e78
renames:
...
after the rename of "grid" to "cell", the name cell should not be used
for the coordinates of the cell centers. In agreement with the names
x_p/u_p for point positions/displacements, now the "point" is used to
refer to the materialpoints (i.e. cell centers)
Additionally, "_node"/"_point" are now suffixes to
"coordinates"/"displacements".
Finally, "coords" is renamed to "coordinates"
2020-12-03 23:59:37 +01:00
Martin Diehl
4d2bf37193
Merge branch 'lattice-structure-rename' into ShowGrainBoundaries
2020-11-29 20:53:58 +01:00
Martin Diehl
5ab2847b36
polishing
2020-11-23 20:06:34 +01:00
Martin Diehl
a87596cefc
return rotation type (ensures proper rotation)
2020-11-19 22:36:19 +01:00
Martin Diehl
89c748fdf1
Merge remote-tracking branch 'origin/development' into vector-mechanics
2020-11-18 13:55:05 +01:00
Martin Diehl
6bedd84759
self-explanatory names
2020-11-18 08:15:04 +01:00
Martin Diehl
fd8743af5e
clearly distinguish seeds for tessellation and seeds for RNG
2020-11-15 13:49:17 +01:00
Martin Diehl
15af12bbb4
__ne__ is automatically set to !__eq__, __neq__ has no special meaning
2020-11-15 11:38:26 +01:00
Martin Diehl
51e5dda702
documentation + consistent string formatting
2020-11-15 10:54:20 +01:00
Martin Diehl
5926f84851
WIP: refactoring Orientation=Symmetry+Rotation, Lattice=subclass of Sym, and Crystal=Lattice+Rotation
2020-11-09 21:20:56 +01:00
Martin Diehl
8d204ea445
[skip ci] small simplification
2020-09-28 16:17:43 +02:00
Martin Diehl
d2cfcdaca0
reference Data for ODF sampling (hybridIA) + skeleton of a test
2020-09-28 16:14:27 +02:00
Martin Diehl
d33507866d
statistically more valid test
2020-09-20 21:50:52 +02:00
Martin Diehl
5895e74029
p is never above 1
...
1e-4 is quite low, usually we are far above. 1e-3 from https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.normaltest.html
is not too far away.
2020-09-20 19:13:54 +02:00
Philip Eisenlohr
5b0b0de6b4
assertion reports offense; fixed seeds for spherical and fiber
2020-09-20 12:22:41 -04:00