Skip to content

Commit ab47765

Browse files
authored
fix compatibility with the nilearn 0.12 (#302)
fix ompatibility with the nilearn 0.12
1 parent 1d3a1ba commit ab47765

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

examples/plot_fmri_data_example.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -273,12 +273,14 @@ def plot_map(
273273
if pval_dl is not None:
274274
plot_map(
275275
zscore_from_pval(pval_dl, one_minus_pval_dl),
276-
zscore_threshold_no_clust,
276+
float(zscore_threshold_no_clust),
277277
"Desparsified Lasso",
278278
)
279279

280280
plot_map(
281-
zscore_from_pval(pval_cdl, one_minus_pval_cdl), zscore_threshold_clust, "CluDL"
281+
zscore_from_pval(pval_cdl, one_minus_pval_cdl),
282+
float(zscore_threshold_clust),
283+
"CluDL",
282284
)
283285

284286
plot_map(selected, 0.5, "EnCluDL", vmin=-1, vmax=1)

0 commit comments

Comments
 (0)