Skip to content

Commit d3cdf69

Browse files
committed
tiny fix transformations
1 parent d746485 commit d3cdf69

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/spatialdata/transformations/transformations.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,7 @@ def __init__(
519519
assert self.matrix.dtype == float
520520
if self.matrix.shape != (len(output_axes) + 1, len(input_axes) + 1):
521521
raise ValueError("Invalid shape for affine matrix.")
522-
if not np.array_equal(self.matrix[-1, :-1], np.zeros(len(input_axes))):
522+
if not np.allclose(self.matrix[-1, :-1], np.zeros(len(input_axes))):
523523
raise ValueError("Affine matrix must be homogeneous.")
524524
assert self.matrix[-1, -1] == 1.0
525525

0 commit comments

Comments
 (0)