{"action":"created","issue":{"url":"https://api.github.com/repos/nistats/nistats/issues/39","labels_url":"https://api.github.com/repos/nistats/nistats/issues/39/labels{/name}","comments_url":"https://api.github.com/repos/nistats/nistats/issues/39/comments","events_url":"https://api.github.com/repos/nistats/nistats/issues/39/events","html_url":"https://github.com/nistats/nistats/pull/39","id":118250053,"number":39,"title":"various cosmits","user":{"login":"agramfort","id":161052,"avatar_url":"https://avatars.githubusercontent.com/u/161052?v=3","gravatar_id":"","url":"https://api.github.com/users/agramfort","html_url":"https://github.com/agramfort","followers_url":"https://api.github.com/users/agramfort/followers","following_url":"https://api.github.com/users/agramfort/following{/other_user}","gists_url":"https://api.github.com/users/agramfort/gists{/gist_id}","starred_url":"https://api.github.com/users/agramfort/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agramfort/subscriptions","organizations_url":"https://api.github.com/users/agramfort/orgs","repos_url":"https://api.github.com/users/agramfort/repos","events_url":"https://api.github.com/users/agramfort/events{/privacy}","received_events_url":"https://api.github.com/users/agramfort/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-11-22T07:53:08Z","updated_at":"2015-11-23T08:42:07Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/nistats/nistats/pulls/39","html_url":"https://github.com/nistats/nistats/pull/39","diff_url":"https://github.com/nistats/nistats/pull/39.diff","patch_url":"https://github.com/nistats/nistats/pull/39.patch"},"body":"result on my we procrastination..."},"comment":{"url":"https://api.github.com/repos/nistats/nistats/issues/comments/158877548","html_url":"https://github.com/nistats/nistats/pull/39#issuecomment-158877548","issue_url":"https://api.github.com/repos/nistats/nistats/issues/39","id":158877548,"user":{"login":"agramfort","id":161052,"avatar_url":"https://avatars.githubusercontent.com/u/161052?v=3","gravatar_id":"","url":"https://api.github.com/users/agramfort","html_url":"https://github.com/agramfort","followers_url":"https://api.github.com/users/agramfort/followers","following_url":"https://api.github.com/users/agramfort/following{/other_user}","gists_url":"https://api.github.com/users/agramfort/gists{/gist_id}","starred_url":"https://api.github.com/users/agramfort/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agramfort/subscriptions","organizations_url":"https://api.github.com/users/agramfort/orgs","repos_url":"https://api.github.com/users/agramfort/repos","events_url":"https://api.github.com/users/agramfort/events{/privacy}","received_events_url":"https://api.github.com/users/agramfort/received_events","type":"User","site_admin":false},"created_at":"2015-11-23T08:42:07Z","updated_at":"2015-11-23T08:42:07Z","body":"one idea I add also would be to use the index of a DataFrame rather than using the frame_times (don't like the name much btw)\r\n\r\n```\r\nIn [4]: df = pd.DataFrame(dict(reg1=np.random.randn(10), reg2=np.random.randn(10)))\r\n\r\nIn [5]: df\r\nOut[5]:\r\n       reg1      reg2\r\n0  0.435177 -1.034931\r\n1 -0.059424  2.223872\r\n2  0.070459 -0.838222\r\n3 -0.777904 -0.690715\r\n4 -0.782690 -0.045528\r\n5  0.278254  0.388872\r\n6  0.867945  0.242028\r\n7 -2.214093  0.866546\r\n8 -0.186639 -0.626605\r\n9 -0.635547  1.209869\r\n\r\nIn [6]: tr = 2.4\r\n\r\nIn [7]: frame_times = np.arange(10) * 2.4\r\n\r\nIn [8]: df.index = frame_times\r\n\r\nIn [9]: df\r\nOut[9]:\r\n          reg1      reg2\r\n0.0   0.435177 -1.034931\r\n2.4  -0.059424  2.223872\r\n4.8   0.070459 -0.838222\r\n7.2  -0.777904 -0.690715\r\n9.6  -0.782690 -0.045528\r\n12.0  0.278254  0.388872\r\n14.4  0.867945  0.242028\r\n16.8 -2.214093  0.866546\r\n19.2 -0.186639 -0.626605\r\n21.6 -0.635547  1.209869\r\n\r\nIn [10]: matrix = df.values\r\n\r\nIn [11]: matrix\r\nOut[11]:\r\narray([[ 0.43517668, -1.03493107],\r\n       [-0.05942358,  2.22387234],\r\n       [ 0.07045882, -0.83822237],\r\n       [-0.77790391, -0.69071475],\r\n       [-0.78269037, -0.04552835],\r\n       [ 0.27825373,  0.38887175],\r\n       [ 0.8679447 ,  0.2420283 ],\r\n       [-2.21409337,  0.8665459 ],\r\n       [-0.18663918, -0.62660464],\r\n       [-0.63554651,  1.20986888]])\r\n```"}}