Skip to content

Commit

Permalink
Applying suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
bthirion committed Mar 1, 2023
1 parent 2e19a3a commit 9c707df
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion nilearn/glm/contrasts.py
Original file line number Diff line number Diff line change
Expand Up @@ -383,9 +383,10 @@ def compute_fixed_effects(contrast_imgs, variance_imgs, mask=None,
Whether fixed effects estimates should be weighted by inverse
variance or not. Default=False.
dofs = array-like, with len = len(variance_imgs) or None
dofs : array-like, with len = len(variance_imgs) or None
the degrees of freedom of the models
when None, it is assumed that the degrees of freedom are 100 per input.
Default=None.
Returns
-------
Expand Down Expand Up @@ -473,10 +474,12 @@ def _compute_fixed_effects_params(contrasts, variances, precision_weighted,
fixed_fx_z_score = con.z_score()
fixed_fx_stat = con.stat_

"""
if contrast_type == 't':
if len(fixed_fx_z_score.shape) == 2:
fixed_fx_z_score = fixed_fx_z_score[:, 0]
if len(fixed_fx_stat.shape) == 2:
fixed_fx_stat = fixed_fx_stat[:, 0]
"""
return (fixed_fx_contrasts, fixed_fx_variance, fixed_fx_stat,
fixed_fx_z_score)

0 comments on commit 9c707df

Please sign in to comment.