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 f4a1f52 commit 8c17f1aCopy full SHA for 8c17f1a
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
@@ -33,8 +35,6 @@ def close_up_to_column_sign(a, b, rtol=1e-05, atol=1e-08, equal_nan=False):
33
35
],
34
36
)
37
def test_close_up_to_column_sign(a, b, close):
- a = np.asanyarray(a)
- b = np.asanyarray(b)
38
assert close_up_to_column_sign(a, b) == close
39
# Sign flips of all columns never changes result
40
assert close_up_to_column_sign(a, -b) == close
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments