Commit 9898658d authored by Andrew Quinn's avatar Andrew Quinn
Browse files

Merge branch 'naming_fix_in_glmspectrum' into 'master'

use constant instead of mean for constant name regressor

See merge request !76
parents 3b3053d9 9ce2d34e
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1870,7 +1870,7 @@ def _glm_fit_glmtools(pxx, conditions, covariates, confounds,
    DC = glm.design.DesignConfig()
    if fit_constant:
        logging.debug('Adding Constant Regressor')
        DC.add_regressor(name='Mean', rtype='Constant')
        DC.add_regressor(name='Constant', rtype='Constant')
    for key in conditions.keys():
        logging.debug('Adding Condition : {0}'.format(key))
        DC.add_regressor(name=key, rtype='Categorical', datainfo=key, codes=[1])