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

Commit

Permalink
Merge pull request #254 from nipreps/oesteban-patch-1
Browse files Browse the repository at this point in the history
FIX: ``plot_gradients()`` requires transposing gradients
  • Loading branch information
oesteban authored Nov 1, 2024
2 parents 795a9b7 + 0c4cebf commit 2ac0106
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/eddymotion/data/dmri.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 2ac0106

Please sign in to comment.