Skip to content

Commit 292d897

Browse files
committed
Attemp nilearn import
1 parent 634ebcd commit 292d897

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pyns/models/analysis.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
altair = attempt_to_import('altair')
1515
nib = attempt_to_import('nibabel')
16-
nilearn = attempt_to_import('nilearn')
16+
nilearn = attempt_to_import('nilearn.plotting')
1717

1818

1919
TMP_DIR = Path(tempfile.mkdtemp())
@@ -493,7 +493,7 @@ def plot_uploads(self, id, plot_args={}, **kwargs):
493493
plots = []
494494
for niimg, _ in images:
495495
plots.append(
496-
niplt.plot_stat_map(niimg, **plot_args))
496+
nilearn.plotting.plot_stat_map(niimg, **plot_args))
497497

498498
return plots
499499
else:

0 commit comments

Comments
 (0)