From 0c4cebfcf4d13b9f8ec638a59261a3b582f9a035 Mon Sep 17 00:00:00 2001 From: Oscar Esteban Date: Fri, 1 Nov 2024 15:42:25 +0100 Subject: [PATCH] fix: ``plot_gradients()`` requires transposing gradients --- src/eddymotion/data/dmri.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/eddymotion/data/dmri.py b/src/eddymotion/data/dmri.py index 6e46f0b1..c48ddfff 100644 --- a/src/eddymotion/data/dmri.py +++ b/src/eddymotion/data/dmri.py @@ -181,7 +181,7 @@ def plot_gradients(self, **kwargs): """Visualize diffusion gradient.""" from nireports.reportlets.modality.dwi import plot_gradients as rpt_plot_gradients - return rpt_plot_gradients(self.gradients, **kwargs) + return rpt_plot_gradients(self.gradients.T, **kwargs) @classmethod def from_filename(cls, filename):