fabianp / hrf_estimation

HRF estimation
13 stars 6 forks source link

NameError: global name 'canonical_full' is not defined #1

Closed Gilles86 closed 10 years ago

Gilles86 commented 10 years ago

Hey,

With the latest version of hrf_estimation I get the following error when fitting a GLM:

[code] .. creating design matrix .. .. done creating design matrix ..

.. computing initialization ..

NameError Traceback (most recent call last)

in () 1 # we call he.glm with our data and a TR of 1 second 2 # we also specify the basis function for the HRF estimation ----> 3 hrfs, betas = he.glm(conditions, onsets, 1., voxels, basis='dhrf', verbose=True) /usr/local/lib/python2.7/dist-packages/hrf_estimation-0.5.1-py2.7.egg/hrf_estimation/rank_one_.pyc in glm(conditions, onsets, TR, Y, basis, mode, hrf_length, oversample, rtol, verbose, maxiter, callback, method, n_jobs, init, return_design_matrix, return_raw_U, cache) 370 else: 371 U_init, V_init = utils.glms_from_glm( --> 372 X_design, Q, canonical_full, n_jobs, False, Y) 373 374 U_init = U_init.mean(1) NameError: global name 'canonical_full' is not defined [/code]
fabianp commented 10 years ago

Thanks for the report @Gilles86 , I'm looking into it

fabianp commented 10 years ago

That bug should be fixed now. I apologize for the state of the software, it is still under heavy development and some things are still broken.

At least everything shown in the example http://nbviewer.ipython.org/github/fabianp/hrf_estimation/blob/master/examples/hrf_estimation%20example.ipynb should now work. Don't hesitate to comment further if you encounter any issue.

Fabian