File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -164,7 +164,7 @@ def main() -> None:
164164 _ , brain_mask = median_otsu (dwi_data , vol_idx = [0 ])
165165
166166 dwi_data_masked = dwi_data .copy ()
167- dwi_data_masked [~ brain_mask , :] = 0
167+ dwi_data_masked [~ brain_mask . astype ( bool ) , :] = 0
168168
169169 # Create a CSD model
170170 response , ratio = auto_response_ssst (
Original file line number Diff line number Diff line change 2424
2525from __future__ import annotations
2626
27- from typing import Any
28-
2927import numpy as np
3028from dipy .core .gradients import GradientTable
3129from dipy .reconst .base import ReconstModel
@@ -139,7 +137,7 @@ def fit(
139137 self ,
140138 data : np .ndarray ,
141139 gtab : GradientTable | np .ndarray ,
142- mask : np .ndarray [ bool , Any ] | None = None ,
140+ mask : np .ndarray | None = None ,
143141 random_state : int = 0 ,
144142 ) -> GPFit :
145143 """Fit method of the DTI model class
You can’t perform that action at this time.
0 commit comments