{"action":"created","issue":{"url":"https://api.github.com/repos/mne-tools/mne-python/issues/3185","repository_url":"https://api.github.com/repos/mne-tools/mne-python","labels_url":"https://api.github.com/repos/mne-tools/mne-python/issues/3185/labels{/name}","comments_url":"https://api.github.com/repos/mne-tools/mne-python/issues/3185/comments","events_url":"https://api.github.com/repos/mne-tools/mne-python/issues/3185/events","html_url":"https://github.com/mne-tools/mne-python/pull/3185","id":151410169,"number":3185,"title":"Slicing the time axis in different tfr functions","user":{"login":"cmoutard","id":7878675,"avatar_url":"https://avatars.githubusercontent.com/u/7878675?v=3","gravatar_id":"","url":"https://api.github.com/users/cmoutard","html_url":"https://github.com/cmoutard","followers_url":"https://api.github.com/users/cmoutard/followers","following_url":"https://api.github.com/users/cmoutard/following{/other_user}","gists_url":"https://api.github.com/users/cmoutard/gists{/gist_id}","starred_url":"https://api.github.com/users/cmoutard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cmoutard/subscriptions","organizations_url":"https://api.github.com/users/cmoutard/orgs","repos_url":"https://api.github.com/users/cmoutard/repos","events_url":"https://api.github.com/users/cmoutard/events{/privacy}","received_events_url":"https://api.github.com/users/cmoutard/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":35,"created_at":"2016-04-27T15:08:16Z","updated_at":"2016-04-29T12:36:50Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/mne-tools/mne-python/pulls/3185","html_url":"https://github.com/mne-tools/mne-python/pull/3185","diff_url":"https://github.com/mne-tools/mne-python/pull/3185.diff","patch_url":"https://github.com/mne-tools/mne-python/pull/3185.patch"},"body":"During some time-frequency analysis, I need to have the frequency power of all the epochs, all the sensors, at a given time.\r\nBut if I do so for the whole set of epochs including each time point, I have an issue with a volume of data which explodes.\r\nOne option would be decimation (across time and/or frequency).\r\nBut this option has still some limitations and I want another one more conservative.\r\nSo I have added a time_range argument to the functions cwt_morlet, cwt, _cwt and single_trial_power which enables to define the indices of the time slice on which one wants to compute the time-frequency decomposition without having to crop the data in the time dimension.\r\nThanks to this, I can loop over the time slices of my choice.\r\nI have also added some tests for these modifications.\r\nI will be happy to improve the code if you think it is worth doing so. \r\n\r\n"},"comment":{"url":"https://api.github.com/repos/mne-tools/mne-python/issues/comments/215699714","html_url":"https://github.com/mne-tools/mne-python/pull/3185#issuecomment-215699714","issue_url":"https://api.github.com/repos/mne-tools/mne-python/issues/3185","id":215699714,"user":{"login":"cmoutard","id":7878675,"avatar_url":"https://avatars.githubusercontent.com/u/7878675?v=3","gravatar_id":"","url":"https://api.github.com/users/cmoutard","html_url":"https://github.com/cmoutard","followers_url":"https://api.github.com/users/cmoutard/followers","following_url":"https://api.github.com/users/cmoutard/following{/other_user}","gists_url":"https://api.github.com/users/cmoutard/gists{/gist_id}","starred_url":"https://api.github.com/users/cmoutard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cmoutard/subscriptions","organizations_url":"https://api.github.com/users/cmoutard/orgs","repos_url":"https://api.github.com/users/cmoutard/repos","events_url":"https://api.github.com/users/cmoutard/events{/privacy}","received_events_url":"https://api.github.com/users/cmoutard/received_events","type":"User","site_admin":false},"created_at":"2016-04-29T12:36:50Z","updated_at":"2016-04-29T12:36:50Z","body":"Ok, thX !"}}