WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
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

Lines changed: 2 additions & 0 deletions
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)