Commit 1d7cdd9
committed
FIX: Disallow
Disallow `None` values when initializaing PET data object: all
`frame_time`, `total_duration`, and `uptake` values are required to
build a `PET` data object. Thus, remove `None` from the type annotation
values.
Fixes:
```
typecheck: commands[0]> mypy .
src/nifreeze/estimator.py:269: error: Value of type "ndarray[Any, Any] | None" is not indexable [index]
```
raised in:
https://github.com/nipreps/nifreeze/actions/runs/18052738286/job/51377557942?pr=203#step:8:34None values when initializaing PET data object1 parent fea6286 commit 1d7cdd9
1 file changed
+3
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
49 | | - | |
50 | | - | |
| 48 | + | |
51 | 49 | | |
52 | | - | |
| 50 | + | |
53 | 51 | | |
54 | | - | |
55 | | - | |
56 | | - | |
| 52 | + | |
57 | 53 | | |
58 | 54 | | |
59 | 55 | | |
| |||
0 commit comments