Commit bc347ed
committed
STYLE: Use keyword arguments when calling DIPY keyword arg functions
Pass parameters as keyword arguments when calling DIPY functions and
methods that have keyword arguments: DIPY has transitioned to
keyword-only arguments for these starting version 1.10.0
(released Dec 12, 2024):
https://docs.dipy.org/1.10.0/api_changes.html#dipy-1-10-0-changes
Fixes:
```
src/nifreeze/testing/simulations.py:181:
UserWarning: Pass ['bvecs'] as keyword args.
From version 2.0.0 passing these as positional arguments will result in an error.
return gradient_table(bvals, bvecs)
```
raised for example in:
https://github.com/nipreps/nifreeze/actions/runs/12457578962/job/34772277392?pr=35#step:12:10151 parent 6b6ba70 commit bc347ed
File tree
3 files changed
+3
-3
lines changed- scripts
- src/nifreeze
- model
- testing
3 files changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
117 | | - | |
| 117 | + | |
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
286 | 286 | | |
287 | 287 | | |
288 | 288 | | |
289 | | - | |
| 289 | + | |
290 | 290 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
178 | 178 | | |
179 | 179 | | |
180 | 180 | | |
181 | | - | |
| 181 | + | |
182 | 182 | | |
183 | 183 | | |
184 | 184 | | |
| |||
0 commit comments