@@ -1190,9 +1190,11 @@ def from_ODF(weights: np.ndarray,
1190
1190
1191
1191
Notes
1192
1192
-----
1193
- Due to the distortion of Euler space in the vicinity of ϕ = 0, probability densities, p, defined on
1194
- grid points with ϕ = 0 will never result in reconstructed orientations as their dV/V = p dγ = p × 0.
1195
- Hence, it is recommended to transform any such dataset to a cell-centered version, which avoids grid points at ϕ = 0.
1193
+ Due to the distortion of Euler space in the vicinity of ϕ = 0,
1194
+ probability densities, p, defined on grid points with ϕ = 0 will never
1195
+ result in reconstructed orientations as their dV/V = p dγ = p × 0.
1196
+ Hence, it is recommended to transform any such dataset to a
1197
+ cell-centered version, which avoids grid points at ϕ = 0.
1196
1198
1197
1199
References
1198
1200
----------
@@ -1422,9 +1424,9 @@ def _qu2eu(qu: np.ndarray) -> np.ndarray:
1422
1424
eu_sum = eu [...,0 ] + eu [...,2 ]
1423
1425
eu_diff = eu [...,0 ] - eu [...,2 ]
1424
1426
1425
- is_zero = np .isclose (eu [...,1 ],0.0 )
1426
- is_pi = np .isclose (eu [...,1 ],np .pi )
1427
- is_ok = ~ np .logical_or (is_zero ,is_pi )
1427
+ is_zero = np .isclose (eu [...,1 ],0.0 )
1428
+ is_pi = np .isclose (eu [...,1 ],np .pi )
1429
+ is_ok = ~ np .logical_or (is_zero ,is_pi )
1428
1430
1429
1431
eu [...,0 ][is_zero ] = 2 * eu [...,0 ][is_zero ]
1430
1432
eu [...,0 ][is_pi ] = - 2 * eu [...,2 ][is_pi ]
0 commit comments