bug fix: tolerance in `inv_rotate`
This commit fixes an issue, due to the given tolerance for `inv_rotate`
function. When the `theta_collection` computed we add a very small
tolerance which is `1e-12`. This tolerance changed to `1e-10`. Previous
tolerance was causing the code to blow up.
@@ -354,7 +354,7 @@ def _inv_rotate(director_collection):
# theta_collection = np.arccos(0.5 * np.einsum("iij->j", rotmat_collection) - 0.5)
# TODO Verify if this tolerance value is accurate
theta_collection = np.arccos(
- 0.5 * np.einsum("iij->j", rotmat_collection) - 0.5 - 1e-12
+ 0.5 * np.einsum("iij->j", rotmat_collection) - 0.5 - 1e-10
)
# Get filter of entities that are close to 0.0
