Daniel Otto de Mentock
c1c2336638
reverted __eq__ and __ne type verification to return NotImplemented constant
...
changed rotation.average input type to FloatSequence
minor adjustments
2022-02-04 16:57:25 +01:00
Daniel Otto de Mentock
019ae1c536
adjusted typecheck in __eq__ and __ne__ functions
2022-02-04 11:43:35 +01:00
Daniel Otto de Mentock
9dad54304c
added generic types to remaining non-overwritten rotation functions (exception __mul__)
2022-02-04 09:57:42 +01:00
Daniel Otto de Mentock
d1f9e98e3c
moved typecheck of __ne__ functions to __eq__
...
added initial empty runtimeerror to Schmid function
minor corrections
2022-02-03 16:11:09 +01:00
Daniel Otto de Mentock
f80de7d0b3
added NumpyRngSeed type to rotation rng_seed objects
2022-02-03 12:04:31 +01:00
Daniel Otto de Mentock
fc8cd6322c
adjusted rng_seed type in rotation
...
adjusted NotImplemented error return in orientation
2022-02-02 12:16:57 +01:00
Daniel Otto de Mentock
3df411469b
Added generic type to rotation functions not overwritten by orientation
2022-02-02 12:14:00 +01:00
Daniel Otto de Mentock
71bc92fed0
changed quote layout to single quote Added NotImplemented returnvalue to __eq__ functions
2022-02-02 11:11:59 +01:00
Daniel Otto de Mentock
33731e4948
adjusted bracket error in from_fiber_component
2022-01-28 15:15:20 +01:00
Daniel Otto de Mentock
53a0de2271
Adjusted docstrings in rotation
...
rewrote map(np.radians()) line to one line tuple
2022-01-28 13:40:37 +01:00
Daniel Otto de Mentock
92ac018486
removed superfluous break in function definition in rotation
2022-01-28 13:34:42 +01:00
Daniel Otto de Mentock
0fe51f58a8
[skip ci] changed almost all function definition lines to multiline
2022-01-26 15:09:09 +01:00
Daniel Otto de Mentock
25513d572b
minor type adjustment to rotation module removed superfluous Sequence type from orientation module
2022-01-14 14:55:08 +01:00
Daniel Otto de Mentock
aabeee9de1
Replaced relevant Sequences with FloatSequence and IntSequence types
2022-01-14 14:37:48 +01:00
Daniel Otto de Mentock
4ba9935ccc
Merge branch 'development' of git.damask.mpie.de:damask/DAMASK into typehints_orientation_rotation
2022-01-13 17:23:24 +01:00
Martin Diehl
3acabcdc7f
docstring adjustments
2022-01-12 23:57:21 +01:00
Daniel Otto de Mentock
0a31ff0980
added type:ignore statement to broken line
2022-01-06 14:33:41 +01:00
Daniel Otto de Mentock
9a9ec11c29
added generator typehint to from_random function
2022-01-03 16:44:27 +01:00
Daniel Otto de Mentock
5702614c4f
expanded rng_seed typehint to array_like type
...
adjusted alpha and beta types for from_fiber_component to also accept
lists
removed superfluous kwargs argument in from_ODF and from_parallel
functions
2022-01-03 15:35:28 +01:00
Daniel Otto de Mentock
65633ee6b1
added typehints for rotation.average function [skip ci]
2021-12-14 17:19:00 +01:00
Daniel Otto de Mentock
cef885cfde
added first typehints for rotation and orientation modules
2021-12-14 17:05:00 +01:00
Martin Diehl
509835bf0b
type hints for tensor
...
adjustments to Rotation/Orientation needed to enable type checking with
mypy
2021-10-31 22:37:54 +01:00
Philip Eisenlohr
f3bcdca5e8
slight improvements to help; use a/b instead of a*~b
2021-09-24 08:54:31 -04:00
Martin Diehl
adecb4c9c2
avoid clash of notation with substitution extension
2021-09-23 21:46:53 +02:00
Philip Eisenlohr
c93c4e462d
[skip ci] changed "Bunge-Euler" to "Bunge Euler" and added note on axis sequence.
2021-09-09 14:05:09 +00:00
Philip Eisenlohr
4b163b9980
[skip ci] remove auto-inserted closing parentheses
2021-09-08 18:45:12 +00:00
Philip Eisenlohr
eae4a7f29c
[skip ci] stray en-dash
2021-09-08 18:39:06 +00:00
Philip Eisenlohr
b337575963
polished langauge of help messages
2021-09-08 13:10:49 -04:00
Martin Diehl
68ac855f45
common help formulation
2021-09-01 22:33:04 +02:00
Martin Diehl
a6842abebf
give defaults
...
ODF etc seem to use degrees as default but mostly we use radians. Should
be discussed
2021-09-01 19:33:46 +02:00
Martin Diehl
63fee141b9
rubbish
...
neper offers advanced seeding/meshing methods
2021-07-16 10:37:09 +02:00
Martin Diehl
f11e7742e5
better document
...
make damask.mpie.de colorful ;)
2021-07-16 10:30:33 +02:00
Martin Diehl
2648464525
relax tolerances for quaternion initialization
...
we read in ASCII/YAML files, 1e-8 must be enough
2021-05-19 09:46:02 +02:00
Philip Eisenlohr
b1bbe5528b
[skip ci] fixed mistake (R --> Q) in example
2021-04-26 17:09:11 +00:00
Martin Diehl
0459f17f58
improved usability
2021-04-25 07:58:15 +02:00
Martin Diehl
95831e53f6
using improved documentation
2021-04-24 16:23:34 +02:00
Martin Diehl
26f37d822d
state return value
...
not for Rotation as its docstring is extended by Orientation
2021-04-23 19:15:11 +02:00
Martin Diehl
d5806075d4
distinguish isclose/allclose and __eq__
2021-04-05 22:15:03 +02:00
Martin Diehl
a3ab890315
bugfix for ConfigMaterial
...
don't use mutable variables in python initializers, they get updated
2021-03-28 11:35:40 +02:00
Martin Diehl
480b8315a7
cleaning + testing
2021-03-27 15:54:29 +01:00
Martin Diehl
be9e00347b
cleaning
...
dropped support for legacy table
2021-03-27 10:11:31 +01:00
Sharan Roongta
fc172921fb
unified citation style continued
2021-03-19 10:41:47 +01:00
Philip Eisenlohr
109ad378c2
corrected help text of as_Rodrigues_vector
2021-03-02 16:26:18 +01: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
Sharan Roongta
9e8a243d6f
avoid name conflict with lattice parameter 'c'
2021-02-12 12:15:08 +01:00
Sharan Roongta
f1b8978e21
accept variables that will be used
...
**kwargs allowed the use of extraneous arguments
2021-02-12 11:24:12 +01:00
Martin Diehl
196902948f
simplified
2021-01-13 09:54:04 +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
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
35ca1ffb0a
consistent copy functionality
2021-01-03 12:03:40 +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
Philip Eisenlohr
4796afdd92
fix for broken representation of no-rotation orientations and averaging weights
2020-12-28 12:10:21 -05:00
Philip Eisenlohr
d8b57680ec
raise NotImplemented when using R*b instead of R@b
2020-12-21 15:47:18 -05:00
Martin Diehl
78192ef3fd
clearer naming + better comments, thanks to @p.eisenlohr
2020-12-07 17:49:37 +01: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
a87596cefc
return rotation type (ensures proper rotation)
2020-11-19 22:36:19 +01:00
Martin Diehl
894a8de9f9
avoid name clash: as_Rodrigues_vector(vector = ...)
2020-11-19 14:31:14 +01:00
Martin Diehl
89c748fdf1
Merge remote-tracking branch 'origin/development' into vector-mechanics
2020-11-18 13:55:05 +01:00
Martin Diehl
9a1e8e3c38
for the transition period
2020-11-18 13:28:53 +01:00
Martin Diehl
6bedd84759
self-explanatory names
2020-11-18 08:15:04 +01:00
Martin Diehl
5ebde607a2
einsum simplifications
2020-11-16 07:43:20 +01:00
Martin Diehl
6f81f5278d
separating general tensor math from mechanics operations
2020-11-16 00:13:34 +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
05c1007add
documentation improvments + acceptance of lists
...
example code at respective function, no space in 'or' variable names
(sphinx cannot handle this)
2020-11-15 10:31:01 +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
Philip Eisenlohr
350f5eb66a
improved from_ODF documentation
2020-09-29 12:55:00 -04:00
Philip Eisenlohr
31f86c28f4
[skip ci] added parameter description; shortened hybrid_IA pre-loop logic
2020-09-29 11:15:10 -04:00
Martin Diehl
d2cfcdaca0
reference Data for ODF sampling (hybridIA) + skeleton of a test
2020-09-28 16:14:27 +02:00
Franz Roters
3612b17295
corrected Sphinx warnings
2020-09-23 16:21:20 +02:00
Franz Roters
190f8a82d4
Merge branch 'texture-components-in-rotation-class2' into 'development'
...
Texture components in rotation class2
See merge request damask/DAMASK!225
2020-09-18 13:31:42 +02:00
Vitesh
ca689193f6
Merge branch 'new-random-style' into 'development'
...
new style for numpy random numbers
See merge request damask/DAMASK!224
2020-09-16 11:12:55 +02:00
Martin Diehl
c71768a37a
polishing
2020-09-16 06:33:17 +02:00
Philip Eisenlohr
ed006d1a89
streamlined fiber/spherical component sampling
2020-09-15 19:12:30 -04:00
Philip Eisenlohr
c6be6fe87f
fixed spherical component sampling and testing
2020-09-15 18:40:05 -04:00
Philip Eisenlohr
82ed546ff7
Merge branch 'texture-components-in-rotation-class2' of magit1.mpie.de:damask/DAMASK into texture-components-in-rotation-class2
2020-09-15 18:14:19 -04:00
Philip Eisenlohr
0a34e342e4
fixed fiber component sampling and testing
2020-09-15 18:14:15 -04:00
Philip Eisenlohr
d6378ec9bc
shortened from_fiber_component algorithm
2020-09-15 16:34:19 -04:00
Martin Diehl
ad2badd3be
[skip ci] vectorized and simplified
...
based on Philips ideas. Test requires from_axis_angle fix
2020-09-15 22:13:28 +02:00
Philip Eisenlohr
d02617c961
fixed normalization of multidimensional axes (from_Rodrigues, from_axis_angle)
2020-09-15 13:09:24 -04:00
Martin Diehl
18c38f1284
polishing
2020-09-15 13:49:44 +02:00
Martin Diehl
2a082b7983
methods for texture component calculations
2020-09-15 12:11:46 +02:00
Martin Diehl
82e41d92ce
new style for numpy random numbers
...
https://numpy.org/doc/stable/reference/random/index.html?highlight=random#quick-start
https://albertcthomas.github.io/good-practices-random-number-generators/
2020-09-15 08:12:02 +02:00
Philip Eisenlohr
9fb3fef4b0
changed British "normalise" to US "normalize" as we (should) follow US English everywhere else.
2020-09-08 10:39:31 -04:00
Martin Diehl
ff7eed4477
(unified) type hints
2020-08-08 20:56:17 +02:00
Martin Diehl
b0e06f180a
reading numpy manual ...
...
https://numpy.org/doc/stable/reference/generated/numpy.isclose.html
rtol=1.e-8, b=1 gives atol+btol=1.e-8+1e-9, simplified to 1e-8
2020-07-13 22:48:29 +02:00
Francisco Jose Gallardo Basile
e1bbaac0d7
Merge branch 'Vectorize-Orientation' into 'development'
...
Vectorize orientation
See merge request damask/DAMASK!186
2020-07-03 12:22:04 +02:00
Martin Diehl
208d5109d4
still needed ...
2020-07-02 08:14:13 +02:00
Martin Diehl
86dc7054a4
still needed
2020-07-01 22:11:16 +02:00
Martin Diehl
4abd77fccf
more test coverage
2020-07-01 17:31:16 +02:00
Martin Diehl
be1eb996e0
more tests and cleaning
2020-07-01 15:12:34 +02:00
Martin Diehl
a7e3dd5a56
Merge branch 'development' into Vectorize-Orientation
2020-07-01 13:30:39 +02:00
Martin Diehl
23365660d8
polishing
2020-06-30 23:18:32 +02:00