File: fix-transpose.patch

package info (click to toggle)
nipype 1.10.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 15,268 kB
  • sloc: python: 156,541; javascript: 9,246; tcl: 608; sh: 485; makefile: 174
file content (13 lines) | stat: -rw-r--r-- 485 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
Description: Declare a,b in tests as np arrays explicitly
Author: Nilesh Patra <nilesh@debian.org>
Last-Update: 2022-05-02
--- a/nipype/algorithms/tests/test_CompCor.py
+++ b/nipype/algorithms/tests/test_CompCor.py
@@ -15,6 +15,7 @@ def close_up_to_column_sign(a, b, rtol=1
     a = np.asanyarray(a)
     b = np.asanyarray(b)
     kwargs = dict(rtol=rtol, atol=atol, equal_nan=equal_nan)
+    a, b = np.array(a), np.array(b)
     if np.allclose(a, b, **kwargs):
         return True