Skip to content

Commit

Permalink
ENH: Require Numpy major version smaller than 2
Browse files Browse the repository at this point in the history
Require Numpy major version smaller than 2: with the recent release of
Numpy 2 a number of dependencies have started to fail, so require Numpy
major versions smaller than 2 until dependencies adapt to Numpy 2.0.

Fixes:
```
AttributeError  Traceback (most recent call last)
AttributeError: _ARRAY_API not found
```

reported for example in:
https://github.com/carpentries-incubator/SDC-BIDS-dMRI/actions/runs/9655229240/job/26630796981#step:13:65

Numpy 2.0.0 release notice:
https://numpy.org/news/#numpy-200-released
  • Loading branch information
jhlegarreta committed Jun 27, 2024
1 parent 33f13bf commit e4e01e5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion binder/environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ dependencies:
- matplotlib=3.5.3
- nibabel
- nilearn=0.7.0
- numpy
- numpy<2
- osfclient=0.0.5
- pandas
- seaborn
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@ dipy==1.7.0
fury==0.7.1
matplotlib==3.5.3
nilearn==0.7.0
numpy<2
osfclient==0.0.5
pybids==0.14.0

0 comments on commit e4e01e5

Please sign in to comment.