We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 35df23a commit ac37f05Copy full SHA for ac37f05
1 file changed
src/highdicom/spatial.py
@@ -28,6 +28,10 @@
28
"""Default tolerance on the dot product to determine perpendicularity."""
29
30
31
+_DEFAULT_ORTHOGONAL_TOLERANCE = 1e-4
32
+"""Default tolerance on the matrix elements to determine orthogonality."""
33
+
34
35
PATIENT_ORIENTATION_OPPOSITES = {
36
PatientOrientationValuesBiped.L: PatientOrientationValuesBiped.R,
37
PatientOrientationValuesBiped.R: PatientOrientationValuesBiped.L,
@@ -957,7 +961,7 @@ def get_closest_patient_orientation(affine: np.ndarray) -> tuple[
957
961
def _is_matrix_orthogonal(
958
962
m: np.ndarray,
959
963
require_unit: bool = True,
960
- tol: float = _DEFAULT_EQUALITY_TOLERANCE,
964
+ tol: float = _DEFAULT_ORTHOGONAL_TOLERANCE,
965
) -> bool:
966
"""Check whether a matrix is orthogonal.
967
0 commit comments