Commit Graph

68 Commits

Author SHA1 Message Date
Philip Eisenlohr b777253dd6 quat->Eulers now returns always positive angles 2018-12-08 11:52:55 -05:00
Philip Eisenlohr 3d7a73a0de added option to return angleAxis as flat list 2018-12-07 22:02:30 -05:00
Philip Eisenlohr d7f505f24e making sure that roots are taken from strictly non-negative summation results 2018-12-07 10:34:45 -05: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 e48fd338bc fixed shallow copy problem of quaternion.p object 2018-12-05 08:55:26 -05:00
Philip Eisenlohr a7554891a4 changed internal quaternion representation to q,p and simplified math 2018-12-04 19:20:24 -05:00
Philip Eisenlohr 1d7172c971 adopted more intutitive alternative of P=-1 from Rowenhorst_etal2015 2018-12-04 17:05:35 -05:00
Philip Eisenlohr 7663d20b56 adopted orientation conventions and mathematics from Rowenhorst -- tests should now pass... 2018-11-21 17:51:38 -05:00
Philip Eisenlohr 860aeebbde slight formatting change to clarify return value make-up 2018-11-20 09:11:41 -05:00
Martin Diehl 07dcdc9fc6 undoes commit 6c3b5f17eb
tests fail, needs closer look. Changes incorporated into
10-consistent-orientation-conversions-in-the-damask-core-and-the-python-module
2018-09-11 02:10:55 +02:00
Philip Eisenlohr 803b342188 Merge branch 'development' of magit1.mpie.de:damask/DAMASK into development 2018-09-06 14:21:50 -04:00
Philip Eisenlohr 6c3b5f17eb updated orientation/quaternion class to follow Rowenhorst_etal2015 2018-09-06 14:19:09 -04:00
Philip Eisenlohr c3f58fd208 unified processing order of quaternion properties to w,x,y,z 2016-11-24 09:37:57 -05:00
Martin Diehl 1c68cf1fd3 using cubic symmetry as default for orientation relationships 2016-11-21 21:07:31 +01:00
Martin Diehl b128b15abf fixed strange behavior for inSST without given symmetry
np.all() on dict (with keys 'proper' and 'improper') always returns
'False', and not, as (most likely) intended 'True' in the case of no symmetry.
Removed this comparison and simply setting inSST=False for no symmetry,
color will be (0,0,0) in that case
2016-11-16 23:11:03 +01:00
Martin Diehl 1346efbef0 pyeuclid moved from google code to github 2016-11-16 23:09:17 +01:00
Philip Eisenlohr 94fcc9ad24 fixed language and syntax 2016-10-31 10:40:58 -04:00
Martin Diehl 95fb50272f adopted to python 3.
for replacement of cmp function, see https://docs.python.org/3.0/whatsnew/3.0.html
it's recommended to remove it completely
2016-10-25 06:51:40 +02:00
Martin Diehl 6fade15323 no blank lines after docstring 2016-09-21 17:46:53 +02:00
Martin Diehl 9e3c54b0e3 a few comments and adjusted calculation 2016-09-21 17:06:50 +02:00
Martin Diehl 7291c20cd4 added reference 2016-09-21 17:06:50 +02:00
Martin Diehl fbacdd8e6d Merge branch 'development' of magit1.mpie.de:damask/DAMASK into development 2016-09-11 19:17:35 +02:00
Martin Diehl 9d7cad1fa4 python3 compatible solutions that still work on python2 2016-09-11 19:03:32 +02:00
Philip Eisenlohr 0056f05b9d all functions using angles now feature logical "degrees" 2016-07-31 19:33:26 -04:00
Martin Diehl 0b145826a6 unicode docstring does not work for abaqus, but if using ö pyflakes wants to have a unicode docstring 2016-07-15 16:51:49 +02:00
Martin Diehl 9e3f4b1ec4 unicode string caused trouble with Abaqus' IronPython 2016-07-14 16:09:04 +02:00
Martin Diehl a4bbdd5ecb further commenting, removing not used variables and code (marc2vtk) 2016-03-04 19:06:36 +01:00
Martin Diehl bbb00b30e8 using numpy random 2015-12-17 21:26:59 +00:00
Philip Eisenlohr 30a481f152 fixed forgotten symmetry property for average orientation. 2015-11-14 04:36:46 +00:00
Philip Eisenlohr 6211a9faad symQuats-related functions can take optional argument to downselect return values.
“getAverageOrientations” —> “average” and takes optional multiplicities of orientations in list.
2015-11-14 01:46:44 +00:00
Martin Diehl b700721905 comment on literature 2015-11-08 11:44:46 +00:00
Aritra Chakraborty 9ea0898cd9 corrected the convention added yesterday; “proper” and ‘improper” was the wrong way around. “proper = True ” considers the bigger (2 adjacent) SST. In general, an improper rotation is implicitly assumed when projecting a pole into the (single) SST, hence this is termed “improper” now. 2015-10-23 20:16:01 +00:00
Philip Eisenlohr 15963391aa inSST and inversePole now can consider the secondary SST related to improper rotations. Secondary SST is immediately neighboring (positively rotated around Z). 2015-10-22 21:15:15 +00:00
Philip Eisenlohr 7df8d95cd0 slightly cleaner way of dealing with disorientation calculation when axis not required to fall into SST. 2015-10-09 13:03:10 +00:00
Martin Diehl 4c46d155ec line continuation not needed 2015-10-09 10:24:17 +00:00
Harsha Phukan 24bd3a6eee added “non-strict” version to find disorientation, neglecting the search for axis falling into SST (has linear instead of quadratic effort). 2015-09-16 17:07:02 +00:00
Philip Eisenlohr 31bb27268c removed dangerous property overload (.asQuaternion() —> .quaternion) 2015-09-09 22:37:18 +00:00
Tias Maiti eb5ad7528f fixed bug in asEulers() output in degrees 2015-08-29 23:22:32 +00:00
Philip Eisenlohr 636eb8a087 multiple fixes and improvements.
1) asAngleAxis got “degrees” switch, fixed buggy output for negative angles, now angles are always non-negative.
2) removed rotateBys.
3) asEulers corrected for cases w==z or x==y.
4) added method symmetryQuats.
5) calculation of disorientation (finally) fixed, returns tuple (disorientation quaternion, index symA, index symB, boolean whether A—>B or B—>A).
2015-08-24 13:39:09 +00:00
Martin Diehl f9348398ce removed old file, added possibility to normalise euler angels to standard range, added svn properties 2015-08-12 15:15:33 +00:00
Chen Zhang dfe0991134 adding property alias for Orientation class to simplify syntax. 2015-08-04 20:38:06 +00:00
Chen Zhang 70606770d0 correct two typos in Quaternion class 2015-07-28 20:10:27 +00:00
Chen Zhang bfedf037c6 add asAngleAxis() to Orientation class 2015-07-22 21:49:24 +00:00
Yannick Naunheim 5fe65bfcc3 corrected OR models and set up simple test to check them 2015-06-29 16:02:56 +00:00
Martin Diehl 50bcfe6e0d possibility to give fixed seed to random orientation 2015-06-26 06:32:25 +00:00
Martin Diehl 6aaf074651 bug fix 2015-06-25 16:16:01 +00:00
Martin Diehl f10dfa311a fixed ORs 2015-06-25 12:00:08 +00:00
Philip Eisenlohr 2d8af638b0 added optional keyword `degrees´ to q.asEulers().
added methods inFZ, equivalentQuaternions, and equivalentOrientations to Orientation class.
general polishing…
2015-06-21 12:05:17 +00:00
Philip Eisenlohr 66ce1d0b33 speed up for inversePole method. Now only performing symmetry equivalence when asked for SST. 2015-06-13 11:51:10 +00:00