Skip to content

Commit ac1e2d1

Browse files
committed
TEST: Coerce close_up_to_column_sign args to arrays before checking for equality
1 parent f4a1f52 commit ac1e2d1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

nipype/algorithms/tests/test_CompCor.py

+2
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212

1313
def close_up_to_column_sign(a, b, rtol=1e-05, atol=1e-08, equal_nan=False):
1414
"""SVD can produce sign flips on a per-column basis."""
15+
a = np.asanyarray(a)
16+
b = np.asanyarray(b)
1517
kwargs = dict(rtol=rtol, atol=atol, equal_nan=equal_nan)
1618
if np.allclose(a, b, **kwargs):
1719
return True

0 commit comments

Comments
 (0)