Skip to content
This repository has been archived by the owner on Dec 20, 2024. It is now read-only.

Commit

Permalink
add ExponentialIsotropicModel if multi-shell
Browse files Browse the repository at this point in the history
  • Loading branch information
josephmje committed Dec 10, 2021
1 parent 51034a5 commit 47677f3
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions eddymotion/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,14 @@ def init(gtab, model="DTI", **kwargs):

elif model.lower() in ("sfm", "gp"):
Model = SparseFascicleModel
param = {
"solver": "ElasticNet",
"isotropic": ExponentialIsotropicModel,
}
param = {"solver": "ElasticNet"}

from dipy.core.gradients import check_multi_b
multi_b = check_multi_b(gtab, 2, non_zero=False)
if multi_b:
from dipy.reconst.sfm import ExponentialIsotropicModel
param["isotropic"].append(ExponentialIsotropicModel)

if model.lower() == "gp":
from sklearn.gaussian_process import GaussianProcessRegressor

Expand Down

0 comments on commit 47677f3

Please sign in to comment.