cosanlab / nltools

Python toolbox for analyzing imaging data
https://nltools.org
MIT License
122 stars 44 forks source link

Problem with onsets_to_dm #188

Closed ljchang closed 6 years ago

ljchang commented 6 years ago

Seems like there is an issue with TR and sampling rate that needs to be fixed.

Exception occurred:
  File "/Users/lukechang/anaconda3/lib/python3.6/site-packages/sphinx_gallery/gen_gallery.py", line 329, in sumarize_failing_examples
    "\n" + "-" * 79)
ValueError: Here is a summary of the problems encountered when running the examples

Unexpected failing examples:
/Users/lukechang/Github/nltools/examples/01_DataOperations/plot_design_matrix.py failed leaving traceback:
Traceback (most recent call last):
  File "/Users/lukechang/Github/nltools/examples/01_DataOperations/plot_design_matrix.py", line 47, in <module>
    dm = dm.convolve()
  File "/Users/lukechang/Github/nltools/nltools/data/design_matrix.py", line 260, in convolve
    assert self.sampling_rate is not None, "Design_matrix has no sampling_rate set!"
AssertionError: Design_matrix has no sampling_rate set!
ljchang commented 6 years ago

fixed in PR #189