From 21eabec7f1dd8a014a3e2255853b082a578947d5 Mon Sep 17 00:00:00 2001 From: Oscar Esteban Date: Mon, 12 Dec 2022 15:29:24 +0100 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Ariel Rokem --- src/eddymotion/data/pet.py | 2 +- src/eddymotion/model/base.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/eddymotion/data/pet.py b/src/eddymotion/data/pet.py index 3bac542d..7de22d6c 100644 --- a/src/eddymotion/data/pet.py +++ b/src/eddymotion/data/pet.py @@ -40,7 +40,7 @@ def _data_repr(value): @attr.s(slots=True) class PET: - """Data representation structure for dMRI data.""" + """Data representation structure for PET data.""" dataobj = attr.ib(default=None, repr=_data_repr) """A numpy ndarray object for the data array, without *b=0* volumes.""" diff --git a/src/eddymotion/model/base.py b/src/eddymotion/model/base.py index 400a1e7a..977253f7 100644 --- a/src/eddymotion/model/base.py +++ b/src/eddymotion/model/base.py @@ -329,7 +329,7 @@ def __init__(self, timepoints=None, n_ctrl=None, mask=None, order=3, **kwargs): self._t = np.arange(-3, float(self._n_ctrl) + 4, dtype="float32") def fit(self, data, *args, **kwargs): - """Do nothing.""" + """Fit the model.""" from scipy.interpolate import BSpline from scipy.sparse.linalg import cg