We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f4a1f52 commit ac1e2d1Copy full SHA for ac1e2d1
nipype/algorithms/tests/test_CompCor.py
@@ -12,6 +12,8 @@
12
13
def close_up_to_column_sign(a, b, rtol=1e-05, atol=1e-08, equal_nan=False):
14
"""SVD can produce sign flips on a per-column basis."""
15
+ a = np.asanyarray(a)
16
+ b = np.asanyarray(b)
17
kwargs = dict(rtol=rtol, atol=atol, equal_nan=equal_nan)
18
if np.allclose(a, b, **kwargs):
19
return True
0 commit comments