{"action":"created","comment":{"url":"https://api.github.com/repos/NSLS-II-CSX/csxtools/pulls/comments/54029321","id":54029321,"diff_hunk":"@@ -127,8 +132,15 @@ static PyObject* image_stackmean(PyObject *self, PyObject *args){\n     goto error;\n   }\n   \n-  if(stackmean((data_t*)PyArray_DATA(input), (data_t*)PyArray_DATA(mout),\n-               (long int*)PyArray_DATA(nout), ndims, dims, norm)){\n+  // Ok now we don't touch Python Object ... Release the GIL\n+  Py_BEGIN_ALLOW_THREADS\n+  \n+  int retval = stackmean((data_t*)PyArray_DATA(input), (data_t*)PyArray_DATA(mout),","path":"src/imagemodule.c","position":24,"original_position":24,"commit_id":"74a2cb3fb50ffa5d4d626c3c9612dd3f29a29547","original_commit_id":"74a2cb3fb50ffa5d4d626c3c9612dd3f29a29547","user":{"login":"tacaswell","id":199813,"avatar_url":"https://avatars.githubusercontent.com/u/199813?v=3","gravatar_id":"","url":"https://api.github.com/users/tacaswell","html_url":"https://github.com/tacaswell","followers_url":"https://api.github.com/users/tacaswell/followers","following_url":"https://api.github.com/users/tacaswell/following{/other_user}","gists_url":"https://api.github.com/users/tacaswell/gists{/gist_id}","starred_url":"https://api.github.com/users/tacaswell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tacaswell/subscriptions","organizations_url":"https://api.github.com/users/tacaswell/orgs","repos_url":"https://api.github.com/users/tacaswell/repos","events_url":"https://api.github.com/users/tacaswell/events{/privacy}","received_events_url":"https://api.github.com/users/tacaswell/received_events","type":"User","site_admin":false},"body":"The other thing to be careful of is the reference counting and I do not know what `PyArray_DATA` does in that regard.","created_at":"2016-02-25T00:03:05Z","updated_at":"2016-02-25T00:03:05Z","html_url":"https://github.com/NSLS-II-CSX/csxtools/pull/31#discussion_r54029321","pull_request_url":"https://api.github.com/repos/NSLS-II-CSX/csxtools/pulls/31","_links":{"self":{"href":"https://api.github.com/repos/NSLS-II-CSX/csxtools/pulls/comments/54029321"},"html":{"href":"https://github.com/NSLS-II-CSX/csxtools/pull/31#discussion_r54029321"},"pull_request":{"href":"https://api.github.com/repos/NSLS-II-CSX/csxtools/pulls/31"}}},"pull_request":{"url":"https://api.github.com/repos/NSLS-II-CSX/csxtools/pulls/31","id":60498957,"html_url":"https://github.com/NSLS-II-CSX/csxtools/pull/31","diff_url":"https://github.com/NSLS-II-CSX/csxtools/pull/31.diff","patch_url":"https://github.com/NSLS-II-CSX/csxtools/pull/31.patch","issue_url":"https://api.github.com/repos/NSLS-II-CSX/csxtools/issues/31","number":31,"state":"open","locked":false,"title":"Various cleanup changes","user":{"login":"stuwilkins","id":1297941,"avatar_url":"https://avatars.githubusercontent.com/u/1297941?v=3","gravatar_id":"","url":"https://api.github.com/users/stuwilkins","html_url":"https://github.com/stuwilkins","followers_url":"https://api.github.com/users/stuwilkins/followers","following_url":"https://api.github.com/users/stuwilkins/following{/other_user}","gists_url":"https://api.github.com/users/stuwilkins/gists{/gist_id}","starred_url":"https://api.github.com/users/stuwilkins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stuwilkins/subscriptions","organizations_url":"https://api.github.com/users/stuwilkins/orgs","repos_url":"https://api.github.com/users/stuwilkins/repos","events_url":"https://api.github.com/users/stuwilkins/events{/privacy}","received_events_url":"https://api.github.com/users/stuwilkins/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-02-24T12:08:47Z","updated_at":"2016-02-25T00:03:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c267bed3640932c78ff84b1ef74a762708d4d0ae","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/NSLS-II-CSX/csxtools/pulls/31/commits","review_comments_url":"https://api.github.com/repos/NSLS-II-CSX/csxtools/pulls/31/comments","review_comment_url":"https://api.github.com/repos/NSLS-II-CSX/csxtools/pulls/comments{/number}","comments_url":"https://api.github.com/repos/NSLS-II-CSX/csxtools/issues/31/comments","statuses_url":"https://api.github.com/repos/NSLS-II-CSX/csxtools/statuses/74a2cb3fb50ffa5d4d626c3c9612dd3f29a29547","head":{"label":"stuwilkins:fixes","ref":"fixes","sha":"74a2cb3fb50ffa5d4d626c3c9612dd3f29a29547","user":{"login":"stuwilkins","id":1297941,"avatar_url":"https://avatars.githubusercontent.com/u/1297941?v=3","gravatar_id":"","url":"https://api.github.com/users/stuwilkins","html_url":"https://github.com/stuwilkins","followers_url":"https://api.github.com/users/stuwilkins/followers","following_url":"https://api.github.com/users/stuwilkins/following{/other_user}","gists_url":"https://api.github.com/users/stuwilkins/gists{/gist_id}","starred_url":"https://api.github.com/users/stuwilkins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stuwilkins/subscriptions","organizations_url":"https://api.github.com/users/stuwilkins/orgs","repos_url":"https://api.github.com/users/stuwilkins/repos","events_url":"https://api.github.com/users/stuwilkins/events{/privacy}","received_events_url":"https://api.github.com/users/stuwilkins/received_events","type":"User","site_admin":false},"repo":{"id":47709015,"name":"csxtools","full_name":"stuwilkins/csxtools","owner":{"login":"stuwilkins","id":1297941,"avatar_url":"https://avatars.githubusercontent.com/u/1297941?v=3","gravatar_id":"","url":"https://api.github.com/users/stuwilkins","html_url":"https://github.com/stuwilkins","followers_url":"https://api.github.com/users/stuwilkins/followers","following_url":"https://api.github.com/users/stuwilkins/following{/other_user}","gists_url":"https://api.github.com/users/stuwilkins/gists{/gist_id}","starred_url":"https://api.github.com/users/stuwilkins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stuwilkins/subscriptions","organizations_url":"https://api.github.com/users/stuwilkins/orgs","repos_url":"https://api.github.com/users/stuwilkins/repos","events_url":"https://api.github.com/users/stuwilkins/events{/privacy}","received_events_url":"https://api.github.com/users/stuwilkins/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/stuwilkins/csxtools","description":"Useful python tools for CSX (23-ID)","fork":true,"url":"https://api.github.com/repos/stuwilkins/csxtools","forks_url":"https://api.github.com/repos/stuwilkins/csxtools/forks","keys_url":"https://api.github.com/repos/stuwilkins/csxtools/keys{/key_id}","collaborators_url":"https://api.github.com/repos/stuwilkins/csxtools/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/stuwilkins/csxtools/teams","hooks_url":"https://api.github.com/repos/stuwilkins/csxtools/hooks","issue_events_url":"https://api.github.com/repos/stuwilkins/csxtools/issues/events{/number}","events_url":"https://api.github.com/repos/stuwilkins/csxtools/events","assignees_url":"https://api.github.com/repos/stuwilkins/csxtools/assignees{/user}","branches_url":"https://api.github.com/repos/stuwilkins/csxtools/branches{/branch}","tags_url":"https://api.github.com/repos/stuwilkins/csxtools/tags","blobs_url":"https://api.github.com/repos/stuwilkins/csxtools/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/stuwilkins/csxtools/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/stuwilkins/csxtools/git/refs{/sha}","trees_url":"https://api.github.com/repos/stuwilkins/csxtools/git/trees{/sha}","statuses_url":"https://api.github.com/repos/stuwilkins/csxtools/statuses/{sha}","languages_url":"https://api.github.com/repos/stuwilkins/csxtools/languages","stargazers_url":"https://api.github.com/repos/stuwilkins/csxtools/stargazers","contributors_url":"https://api.github.com/repos/stuwilkins/csxtools/contributors","subscribers_url":"https://api.github.com/repos/stuwilkins/csxtools/subscribers","subscription_url":"https://api.github.com/repos/stuwilkins/csxtools/subscription","commits_url":"https://api.github.com/repos/stuwilkins/csxtools/commits{/sha}","git_commits_url":"https://api.github.com/repos/stuwilkins/csxtools/git/commits{/sha}","comments_url":"https://api.github.com/repos/stuwilkins/csxtools/comments{/number}","issue_comment_url":"https://api.github.com/repos/stuwilkins/csxtools/issues/comments{/number}","contents_url":"https://api.github.com/repos/stuwilkins/csxtools/contents/{+path}","compare_url":"https://api.github.com/repos/stuwilkins/csxtools/compare/{base}...{head}","merges_url":"https://api.github.com/repos/stuwilkins/csxtools/merges","archive_url":"https://api.github.com/repos/stuwilkins/csxtools/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/stuwilkins/csxtools/downloads","issues_url":"https://api.github.com/repos/stuwilkins/csxtools/issues{/number}","pulls_url":"https://api.github.com/repos/stuwilkins/csxtools/pulls{/number}","milestones_url":"https://api.github.com/repos/stuwilkins/csxtools/milestones{/number}","notifications_url":"https://api.github.com/repos/stuwilkins/csxtools/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/stuwilkins/csxtools/labels{/name}","releases_url":"https://api.github.com/repos/stuwilkins/csxtools/releases{/id}","deployments_url":"https://api.github.com/repos/stuwilkins/csxtools/deployments","created_at":"2015-12-09T17:57:10Z","updated_at":"2016-01-11T23:09:34Z","pushed_at":"2016-02-24T12:08:19Z","git_url":"git://github.com/stuwilkins/csxtools.git","ssh_url":"git@github.com:stuwilkins/csxtools.git","clone_url":"https://github.com/stuwilkins/csxtools.git","svn_url":"https://github.com/stuwilkins/csxtools","homepage":null,"size":111213,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":1,"default_branch":"master"}},"base":{"label":"NSLS-II-CSX:master","ref":"master","sha":"3a8051fa3c93084342f2330121b99b67b32d893b","user":{"login":"NSLS-II-CSX","id":6436775,"avatar_url":"https://avatars.githubusercontent.com/u/6436775?v=3","gravatar_id":"","url":"https://api.github.com/users/NSLS-II-CSX","html_url":"https://github.com/NSLS-II-CSX","followers_url":"https://api.github.com/users/NSLS-II-CSX/followers","following_url":"https://api.github.com/users/NSLS-II-CSX/following{/other_user}","gists_url":"https://api.github.com/users/NSLS-II-CSX/gists{/gist_id}","starred_url":"https://api.github.com/users/NSLS-II-CSX/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NSLS-II-CSX/subscriptions","organizations_url":"https://api.github.com/users/NSLS-II-CSX/orgs","repos_url":"https://api.github.com/users/NSLS-II-CSX/repos","events_url":"https://api.github.com/users/NSLS-II-CSX/events{/privacy}","received_events_url":"https://api.github.com/users/NSLS-II-CSX/received_events","type":"Organization","site_admin":false},"repo":{"id":34019800,"name":"csxtools","full_name":"NSLS-II-CSX/csxtools","owner":{"login":"NSLS-II-CSX","id":6436775,"avatar_url":"https://avatars.githubusercontent.com/u/6436775?v=3","gravatar_id":"","url":"https://api.github.com/users/NSLS-II-CSX","html_url":"https://github.com/NSLS-II-CSX","followers_url":"https://api.github.com/users/NSLS-II-CSX/followers","following_url":"https://api.github.com/users/NSLS-II-CSX/following{/other_user}","gists_url":"https://api.github.com/users/NSLS-II-CSX/gists{/gist_id}","starred_url":"https://api.github.com/users/NSLS-II-CSX/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NSLS-II-CSX/subscriptions","organizations_url":"https://api.github.com/users/NSLS-II-CSX/orgs","repos_url":"https://api.github.com/users/NSLS-II-CSX/repos","events_url":"https://api.github.com/users/NSLS-II-CSX/events{/privacy}","received_events_url":"https://api.github.com/users/NSLS-II-CSX/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/NSLS-II-CSX/csxtools","description":"Useful python tools for CSX (23-ID)","fork":false,"url":"https://api.github.com/repos/NSLS-II-CSX/csxtools","forks_url":"https://api.github.com/repos/NSLS-II-CSX/csxtools/forks","keys_url":"https://api.github.com/repos/NSLS-II-CSX/csxtools/keys{/key_id}","collaborators_url":"https://api.github.com/repos/NSLS-II-CSX/csxtools/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/NSLS-II-CSX/csxtools/teams","hooks_url":"https://api.github.com/repos/NSLS-II-CSX/csxtools/hooks","issue_events_url":"https://api.github.com/repos/NSLS-II-CSX/csxtools/issues/events{/number}","events_url":"https://api.github.com/repos/NSLS-II-CSX/csxtools/events","assignees_url":"https://api.github.com/repos/NSLS-II-CSX/csxtools/assignees{/user}","branches_url":"https://api.github.com/repos/NSLS-II-CSX/csxtools/branches{/branch}","tags_url":"https://api.github.com/repos/NSLS-II-CSX/csxtools/tags","blobs_url":"https://api.github.com/repos/NSLS-II-CSX/csxtools/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/NSLS-II-CSX/csxtools/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/NSLS-II-CSX/csxtools/git/refs{/sha}","trees_url":"https://api.github.com/repos/NSLS-II-CSX/csxtools/git/trees{/sha}","statuses_url":"https://api.github.com/repos/NSLS-II-CSX/csxtools/statuses/{sha}","languages_url":"https://api.github.com/repos/NSLS-II-CSX/csxtools/languages","stargazers_url":"https://api.github.com/repos/NSLS-II-CSX/csxtools/stargazers","contributors_url":"https://api.github.com/repos/NSLS-II-CSX/csxtools/contributors","subscribers_url":"https://api.github.com/repos/NSLS-II-CSX/csxtools/subscribers","subscription_url":"https://api.github.com/repos/NSLS-II-CSX/csxtools/subscription","commits_url":"https://api.github.com/repos/NSLS-II-CSX/csxtools/commits{/sha}","git_commits_url":"https://api.github.com/repos/NSLS-II-CSX/csxtools/git/commits{/sha}","comments_url":"https://api.github.com/repos/NSLS-II-CSX/csxtools/comments{/number}","issue_comment_url":"https://api.github.com/repos/NSLS-II-CSX/csxtools/issues/comments{/number}","contents_url":"https://api.github.com/repos/NSLS-II-CSX/csxtools/contents/{+path}","compare_url":"https://api.github.com/repos/NSLS-II-CSX/csxtools/compare/{base}...{head}","merges_url":"https://api.github.com/repos/NSLS-II-CSX/csxtools/merges","archive_url":"https://api.github.com/repos/NSLS-II-CSX/csxtools/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/NSLS-II-CSX/csxtools/downloads","issues_url":"https://api.github.com/repos/NSLS-II-CSX/csxtools/issues{/number}","pulls_url":"https://api.github.com/repos/NSLS-II-CSX/csxtools/pulls{/number}","milestones_url":"https://api.github.com/repos/NSLS-II-CSX/csxtools/milestones{/number}","notifications_url":"https://api.github.com/repos/NSLS-II-CSX/csxtools/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/NSLS-II-CSX/csxtools/labels{/name}","releases_url":"https://api.github.com/repos/NSLS-II-CSX/csxtools/releases{/id}","deployments_url":"https://api.github.com/repos/NSLS-II-CSX/csxtools/deployments","created_at":"2015-04-15T21:33:19Z","updated_at":"2016-02-13T22:01:30Z","pushed_at":"2016-02-24T12:08:48Z","git_url":"git://github.com/NSLS-II-CSX/csxtools.git","ssh_url":"git@github.com:NSLS-II-CSX/csxtools.git","clone_url":"https://github.com/NSLS-II-CSX/csxtools.git","svn_url":"https://github.com/NSLS-II-CSX/csxtools","homepage":"http://nsls-ii-csx.github.io/csxtools","size":77994,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":5,"mirror_url":null,"open_issues_count":3,"forks":5,"open_issues":3,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/NSLS-II-CSX/csxtools/pulls/31"},"html":{"href":"https://github.com/NSLS-II-CSX/csxtools/pull/31"},"issue":{"href":"https://api.github.com/repos/NSLS-II-CSX/csxtools/issues/31"},"comments":{"href":"https://api.github.com/repos/NSLS-II-CSX/csxtools/issues/31/comments"},"review_comments":{"href":"https://api.github.com/repos/NSLS-II-CSX/csxtools/pulls/31/comments"},"review_comment":{"href":"https://api.github.com/repos/NSLS-II-CSX/csxtools/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/NSLS-II-CSX/csxtools/pulls/31/commits"},"statuses":{"href":"https://api.github.com/repos/NSLS-II-CSX/csxtools/statuses/74a2cb3fb50ffa5d4d626c3c9612dd3f29a29547"}}}}