{"action":"created","comment":{"url":"https://api.github.com/repos/nipy/nitime/pulls/comments/61362919","id":61362919,"diff_hunk":"@@ -985,43 +981,43 @@ def __repr__(self):\n     # add some methods that implement arithmetic on the timeseries data\n     def __add__(self, other):\n         out = self.copy()\n-        out.data = out.data.__add__(other)\n+        out.data = out.data.__add__(np.array(other).T)","path":"nitime/timeseries.py","position":null,"original_position":127,"commit_id":"438220279a03b1d5bd5f1ee363375717477d7851","original_commit_id":"51bcb990256f286629a3f718c33a26d8c1e444ce","user":{"login":"arokem","id":118582,"avatar_url":"https://avatars.githubusercontent.com/u/118582?v=3","gravatar_id":"","url":"https://api.github.com/users/arokem","html_url":"https://github.com/arokem","followers_url":"https://api.github.com/users/arokem/followers","following_url":"https://api.github.com/users/arokem/following{/other_user}","gists_url":"https://api.github.com/users/arokem/gists{/gist_id}","starred_url":"https://api.github.com/users/arokem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arokem/subscriptions","organizations_url":"https://api.github.com/users/arokem/orgs","repos_url":"https://api.github.com/users/arokem/repos","events_url":"https://api.github.com/users/arokem/events{/privacy}","received_events_url":"https://api.github.com/users/arokem/received_events","type":"User","site_admin":false},"body":"Good call on `asanyarray`. The transpose surprised me -- I don't think we ever tested addition with n-dimensional arrays before, though. I can't really reason about why this would be necessary, but y'know, proof by unit-test.","created_at":"2016-04-28T01:25:44Z","updated_at":"2016-04-28T01:25:44Z","html_url":"https://github.com/nipy/nitime/pull/146#discussion_r61362919","pull_request_url":"https://api.github.com/repos/nipy/nitime/pulls/146","_links":{"self":{"href":"https://api.github.com/repos/nipy/nitime/pulls/comments/61362919"},"html":{"href":"https://github.com/nipy/nitime/pull/146#discussion_r61362919"},"pull_request":{"href":"https://api.github.com/repos/nipy/nitime/pulls/146"}}},"pull_request":{"url":"https://api.github.com/repos/nipy/nitime/pulls/146","id":68144673,"html_url":"https://github.com/nipy/nitime/pull/146","diff_url":"https://github.com/nipy/nitime/pull/146.diff","patch_url":"https://github.com/nipy/nitime/pull/146.patch","issue_url":"https://api.github.com/repos/nipy/nitime/issues/146","number":146,"state":"open","locked":false,"title":"BF: Addition (and sub, mul, div, etc.) should work between time-series.","user":{"login":"arokem","id":118582,"avatar_url":"https://avatars.githubusercontent.com/u/118582?v=3","gravatar_id":"","url":"https://api.github.com/users/arokem","html_url":"https://github.com/arokem","followers_url":"https://api.github.com/users/arokem/followers","following_url":"https://api.github.com/users/arokem/following{/other_user}","gists_url":"https://api.github.com/users/arokem/gists{/gist_id}","starred_url":"https://api.github.com/users/arokem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arokem/subscriptions","organizations_url":"https://api.github.com/users/arokem/orgs","repos_url":"https://api.github.com/users/arokem/repos","events_url":"https://api.github.com/users/arokem/events{/privacy}","received_events_url":"https://api.github.com/users/arokem/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-04-28T00:00:35Z","updated_at":"2016-04-28T01:25:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8bb73e4d26b3418aa11257233d493a94c5850cdd","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/nipy/nitime/pulls/146/commits","review_comments_url":"https://api.github.com/repos/nipy/nitime/pulls/146/comments","review_comment_url":"https://api.github.com/repos/nipy/nitime/pulls/comments{/number}","comments_url":"https://api.github.com/repos/nipy/nitime/issues/146/comments","statuses_url":"https://api.github.com/repos/nipy/nitime/statuses/438220279a03b1d5bd5f1ee363375717477d7851","head":{"label":"arokem:add-ts","ref":"add-ts","sha":"438220279a03b1d5bd5f1ee363375717477d7851","user":{"login":"arokem","id":118582,"avatar_url":"https://avatars.githubusercontent.com/u/118582?v=3","gravatar_id":"","url":"https://api.github.com/users/arokem","html_url":"https://github.com/arokem","followers_url":"https://api.github.com/users/arokem/followers","following_url":"https://api.github.com/users/arokem/following{/other_user}","gists_url":"https://api.github.com/users/arokem/gists{/gist_id}","starred_url":"https://api.github.com/users/arokem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arokem/subscriptions","organizations_url":"https://api.github.com/users/arokem/orgs","repos_url":"https://api.github.com/users/arokem/repos","events_url":"https://api.github.com/users/arokem/events{/privacy}","received_events_url":"https://api.github.com/users/arokem/received_events","type":"User","site_admin":false},"repo":{"id":832431,"name":"nitime","full_name":"arokem/nitime","owner":{"login":"arokem","id":118582,"avatar_url":"https://avatars.githubusercontent.com/u/118582?v=3","gravatar_id":"","url":"https://api.github.com/users/arokem","html_url":"https://github.com/arokem","followers_url":"https://api.github.com/users/arokem/followers","following_url":"https://api.github.com/users/arokem/following{/other_user}","gists_url":"https://api.github.com/users/arokem/gists{/gist_id}","starred_url":"https://api.github.com/users/arokem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arokem/subscriptions","organizations_url":"https://api.github.com/users/arokem/orgs","repos_url":"https://api.github.com/users/arokem/repos","events_url":"https://api.github.com/users/arokem/events{/privacy}","received_events_url":"https://api.github.com/users/arokem/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/arokem/nitime","description":"Timeseries analysis for neuroscience data","fork":true,"url":"https://api.github.com/repos/arokem/nitime","forks_url":"https://api.github.com/repos/arokem/nitime/forks","keys_url":"https://api.github.com/repos/arokem/nitime/keys{/key_id}","collaborators_url":"https://api.github.com/repos/arokem/nitime/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/arokem/nitime/teams","hooks_url":"https://api.github.com/repos/arokem/nitime/hooks","issue_events_url":"https://api.github.com/repos/arokem/nitime/issues/events{/number}","events_url":"https://api.github.com/repos/arokem/nitime/events","assignees_url":"https://api.github.com/repos/arokem/nitime/assignees{/user}","branches_url":"https://api.github.com/repos/arokem/nitime/branches{/branch}","tags_url":"https://api.github.com/repos/arokem/nitime/tags","blobs_url":"https://api.github.com/repos/arokem/nitime/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/arokem/nitime/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/arokem/nitime/git/refs{/sha}","trees_url":"https://api.github.com/repos/arokem/nitime/git/trees{/sha}","statuses_url":"https://api.github.com/repos/arokem/nitime/statuses/{sha}","languages_url":"https://api.github.com/repos/arokem/nitime/languages","stargazers_url":"https://api.github.com/repos/arokem/nitime/stargazers","contributors_url":"https://api.github.com/repos/arokem/nitime/contributors","subscribers_url":"https://api.github.com/repos/arokem/nitime/subscribers","subscription_url":"https://api.github.com/repos/arokem/nitime/subscription","commits_url":"https://api.github.com/repos/arokem/nitime/commits{/sha}","git_commits_url":"https://api.github.com/repos/arokem/nitime/git/commits{/sha}","comments_url":"https://api.github.com/repos/arokem/nitime/comments{/number}","issue_comment_url":"https://api.github.com/repos/arokem/nitime/issues/comments{/number}","contents_url":"https://api.github.com/repos/arokem/nitime/contents/{+path}","compare_url":"https://api.github.com/repos/arokem/nitime/compare/{base}...{head}","merges_url":"https://api.github.com/repos/arokem/nitime/merges","archive_url":"https://api.github.com/repos/arokem/nitime/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/arokem/nitime/downloads","issues_url":"https://api.github.com/repos/arokem/nitime/issues{/number}","pulls_url":"https://api.github.com/repos/arokem/nitime/pulls{/number}","milestones_url":"https://api.github.com/repos/arokem/nitime/milestones{/number}","notifications_url":"https://api.github.com/repos/arokem/nitime/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/arokem/nitime/labels{/name}","releases_url":"https://api.github.com/repos/arokem/nitime/releases{/id}","deployments_url":"https://api.github.com/repos/arokem/nitime/deployments","created_at":"2010-08-12T00:30:28Z","updated_at":"2015-10-30T19:52:22Z","pushed_at":"2016-04-28T01:24:25Z","git_url":"git://github.com/arokem/nitime.git","ssh_url":"git@github.com:arokem/nitime.git","clone_url":"https://github.com/arokem/nitime.git","svn_url":"https://github.com/arokem/nitime","homepage":"http://nipy.org/nitime","size":25601,"stargazers_count":2,"watchers_count":2,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":2,"default_branch":"master"}},"base":{"label":"nipy:master","ref":"master","sha":"56383354259e978cd35b665965fcc5463a987802","user":{"login":"nipy","id":233707,"avatar_url":"https://avatars.githubusercontent.com/u/233707?v=3","gravatar_id":"","url":"https://api.github.com/users/nipy","html_url":"https://github.com/nipy","followers_url":"https://api.github.com/users/nipy/followers","following_url":"https://api.github.com/users/nipy/following{/other_user}","gists_url":"https://api.github.com/users/nipy/gists{/gist_id}","starred_url":"https://api.github.com/users/nipy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nipy/subscriptions","organizations_url":"https://api.github.com/users/nipy/orgs","repos_url":"https://api.github.com/users/nipy/repos","events_url":"https://api.github.com/users/nipy/events{/privacy}","received_events_url":"https://api.github.com/users/nipy/received_events","type":"Organization","site_admin":false},"repo":{"id":294865,"name":"nitime","full_name":"nipy/nitime","owner":{"login":"nipy","id":233707,"avatar_url":"https://avatars.githubusercontent.com/u/233707?v=3","gravatar_id":"","url":"https://api.github.com/users/nipy","html_url":"https://github.com/nipy","followers_url":"https://api.github.com/users/nipy/followers","following_url":"https://api.github.com/users/nipy/following{/other_user}","gists_url":"https://api.github.com/users/nipy/gists{/gist_id}","starred_url":"https://api.github.com/users/nipy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nipy/subscriptions","organizations_url":"https://api.github.com/users/nipy/orgs","repos_url":"https://api.github.com/users/nipy/repos","events_url":"https://api.github.com/users/nipy/events{/privacy}","received_events_url":"https://api.github.com/users/nipy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/nipy/nitime","description":"Timeseries analysis for neuroscience data","fork":false,"url":"https://api.github.com/repos/nipy/nitime","forks_url":"https://api.github.com/repos/nipy/nitime/forks","keys_url":"https://api.github.com/repos/nipy/nitime/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nipy/nitime/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nipy/nitime/teams","hooks_url":"https://api.github.com/repos/nipy/nitime/hooks","issue_events_url":"https://api.github.com/repos/nipy/nitime/issues/events{/number}","events_url":"https://api.github.com/repos/nipy/nitime/events","assignees_url":"https://api.github.com/repos/nipy/nitime/assignees{/user}","branches_url":"https://api.github.com/repos/nipy/nitime/branches{/branch}","tags_url":"https://api.github.com/repos/nipy/nitime/tags","blobs_url":"https://api.github.com/repos/nipy/nitime/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nipy/nitime/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nipy/nitime/git/refs{/sha}","trees_url":"https://api.github.com/repos/nipy/nitime/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nipy/nitime/statuses/{sha}","languages_url":"https://api.github.com/repos/nipy/nitime/languages","stargazers_url":"https://api.github.com/repos/nipy/nitime/stargazers","contributors_url":"https://api.github.com/repos/nipy/nitime/contributors","subscribers_url":"https://api.github.com/repos/nipy/nitime/subscribers","subscription_url":"https://api.github.com/repos/nipy/nitime/subscription","commits_url":"https://api.github.com/repos/nipy/nitime/commits{/sha}","git_commits_url":"https://api.github.com/repos/nipy/nitime/git/commits{/sha}","comments_url":"https://api.github.com/repos/nipy/nitime/comments{/number}","issue_comment_url":"https://api.github.com/repos/nipy/nitime/issues/comments{/number}","contents_url":"https://api.github.com/repos/nipy/nitime/contents/{+path}","compare_url":"https://api.github.com/repos/nipy/nitime/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nipy/nitime/merges","archive_url":"https://api.github.com/repos/nipy/nitime/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nipy/nitime/downloads","issues_url":"https://api.github.com/repos/nipy/nitime/issues{/number}","pulls_url":"https://api.github.com/repos/nipy/nitime/pulls{/number}","milestones_url":"https://api.github.com/repos/nipy/nitime/milestones{/number}","notifications_url":"https://api.github.com/repos/nipy/nitime/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nipy/nitime/labels{/name}","releases_url":"https://api.github.com/repos/nipy/nitime/releases{/id}","deployments_url":"https://api.github.com/repos/nipy/nitime/deployments","created_at":"2009-09-02T00:29:57Z","updated_at":"2016-04-27T04:44:45Z","pushed_at":"2016-04-28T01:24:25Z","git_url":"git://github.com/nipy/nitime.git","ssh_url":"git@github.com:nipy/nitime.git","clone_url":"https://github.com/nipy/nitime.git","svn_url":"https://github.com/nipy/nitime","homepage":"http://nipy.org/nitime","size":30089,"stargazers_count":78,"watchers_count":78,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":44,"mirror_url":null,"open_issues_count":14,"forks":44,"open_issues":14,"watchers":78,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/nipy/nitime/pulls/146"},"html":{"href":"https://github.com/nipy/nitime/pull/146"},"issue":{"href":"https://api.github.com/repos/nipy/nitime/issues/146"},"comments":{"href":"https://api.github.com/repos/nipy/nitime/issues/146/comments"},"review_comments":{"href":"https://api.github.com/repos/nipy/nitime/pulls/146/comments"},"review_comment":{"href":"https://api.github.com/repos/nipy/nitime/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/nipy/nitime/pulls/146/commits"},"statuses":{"href":"https://api.github.com/repos/nipy/nitime/statuses/438220279a03b1d5bd5f1ee363375717477d7851"}}}}