Skip to content

Commit 4a91e88

Browse files
authored
Merge pull request #3501 from nipy/mnt/traits-lt-6.4
MNT: Pin traits < 6.4
2 parents 1dee939 + ac1e2d1 commit 4a91e88

File tree

5 files changed

+15
-12
lines changed

5 files changed

+15
-12
lines changed

.github/workflows/contrib.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
runs-on: ${{ matrix.os }}
2525
strategy:
2626
matrix:
27-
os: ['ubuntu-18.04']
27+
os: ['ubuntu-latest']
2828
python-version: [3.8]
2929
nipype-extras: ['dev']
3030
check: ['specs', 'style']
@@ -38,12 +38,12 @@ jobs:
3838
CI_SKIP_TEST: 1
3939

4040
steps:
41-
- uses: actions/checkout@v2
41+
- uses: actions/checkout@v3
4242
with:
4343
submodules: recursive
4444
fetch-depth: 0
4545
- name: Set up Python ${{ matrix.python-version }}
46-
uses: actions/setup-python@v2
46+
uses: actions/setup-python@v4
4747
with:
4848
python-version: ${{ matrix.python-version }}
4949
- name: Display Python version
@@ -64,12 +64,12 @@ jobs:
6464
- name: Run tests
6565
run: tools/ci/check.sh
6666
if: ${{ matrix.check != 'skiptests' }}
67-
- uses: codecov/codecov-action@v1
67+
- uses: codecov/codecov-action@v3
6868
with:
6969
file: coverage.xml
7070
if: ${{ always() }}
7171
- name: Upload pytest test results
72-
uses: actions/upload-artifact@v2
72+
uses: actions/upload-artifact@v3
7373
with:
7474
name: pytest-results-${{ matrix.os }}-${{ matrix.python-version }}
7575
path: test-results.xml

.github/workflows/package.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ jobs:
2626
- os: ubuntu-latest
2727
python-version: 3.8
2828
steps:
29-
- uses: actions/checkout@v2
29+
- uses: actions/checkout@v3
3030
- name: Set up Python ${{ matrix.python-version }}
31-
uses: actions/setup-python@v2
31+
uses: actions/setup-python@v4
3232
with:
3333
python-version: ${{ matrix.python-version }}
3434
- name: Display Python version

.github/workflows/tests.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,12 @@ jobs:
5454
CI_SKIP_TEST: 1
5555

5656
steps:
57-
- uses: actions/checkout@v2
57+
- uses: actions/checkout@v3
5858
with:
5959
submodules: recursive
6060
fetch-depth: 0
6161
- name: Set up Python ${{ matrix.python-version }}
62-
uses: actions/setup-python@v2
62+
uses: actions/setup-python@v4
6363
with:
6464
python-version: ${{ matrix.python-version }}
6565
- name: Display Python version
@@ -80,12 +80,12 @@ jobs:
8080
- name: Run tests
8181
run: tools/ci/check.sh
8282
if: ${{ matrix.check != 'skiptests' }}
83-
- uses: codecov/codecov-action@v1
83+
- uses: codecov/codecov-action@v3
8484
with:
8585
file: coverage.xml
8686
if: ${{ always() }}
8787
- name: Upload pytest test results
88-
uses: actions/upload-artifact@v2
88+
uses: actions/upload-artifact@v3
8989
with:
9090
name: pytest-results-${{ matrix.os }}-${{ matrix.python-version }}
9191
path: test-results.xml

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

nipype/info.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ def get_nipype_gitversion():
104104
NUMPY_MIN_VERSION = "1.17"
105105
SCIPY_MIN_VERSION = "0.14"
106106
TRAITS_MIN_VERSION = "4.6"
107+
TRAITS_MAX_VERSION = "6.4"
107108
DATEUTIL_MIN_VERSION = "2.2"
108109
SIMPLEJSON_MIN_VERSION = "3.8.0"
109110
PROV_MIN_VERSION = "1.5.2"
@@ -143,7 +144,7 @@ def get_nipype_gitversion():
143144
"rdflib>=%s" % RDFLIB_MIN_VERSION,
144145
"scipy>=%s" % SCIPY_MIN_VERSION,
145146
"simplejson>=%s" % SIMPLEJSON_MIN_VERSION,
146-
"traits>=%s,!=5.0" % TRAITS_MIN_VERSION,
147+
"traits>=%s,<%s,!=5.0" % (TRAITS_MIN_VERSION, TRAITS_MAX_VERSION),
147148
"filelock>=3.0.0",
148149
"etelemetry>=0.2.0",
149150
"looseversion",

0 commit comments

Comments
 (0)