{"action":"created","comment":{"url":"https://api.github.com/repos/NSLS-II-CSX/csxtools/pulls/comments/54400686","id":54400686,"diff_hunk":"@@ -112,3 +113,60 @@ def stackstderr(array):\n     \"\"\"\n     X, Y = extimage.stackprocess(array, 4)\n     return X, Y\n+\n+\n+def ccdmean(images):","path":"csxtools/image/stack.py","position":11,"original_position":11,"commit_id":"6613aee2ff2690b2c0cf1c677bf0001c32012218","original_commit_id":"6613aee2ff2690b2c0cf1c677bf0001c32012218","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":"These functions should have unit tests","created_at":"2016-02-29T11:58:05Z","updated_at":"2016-02-29T11:58:05Z","html_url":"https://github.com/NSLS-II-CSX/csxtools/pull/33#discussion_r54400686","pull_request_url":"https://api.github.com/repos/NSLS-II-CSX/csxtools/pulls/33","_links":{"self":{"href":"https://api.github.com/repos/NSLS-II-CSX/csxtools/pulls/comments/54400686"},"html":{"href":"https://github.com/NSLS-II-CSX/csxtools/pull/33#discussion_r54400686"},"pull_request":{"href":"https://api.github.com/repos/NSLS-II-CSX/csxtools/pulls/33"}}},"pull_request":{"url":"https://api.github.com/repos/NSLS-II-CSX/csxtools/pulls/33","id":61036635,"html_url":"https://github.com/NSLS-II-CSX/csxtools/pull/33","diff_url":"https://github.com/NSLS-II-CSX/csxtools/pull/33.diff","patch_url":"https://github.com/NSLS-II-CSX/csxtools/pull/33.patch","issue_url":"https://api.github.com/repos/NSLS-II-CSX/csxtools/issues/33","number":33,"state":"open","locked":false,"title":"Add ROI option to get_fastccd_images and functions for quickly plotting scans ","user":{"login":"vivekthampy","id":9218704,"avatar_url":"https://avatars.githubusercontent.com/u/9218704?v=3","gravatar_id":"","url":"https://api.github.com/users/vivekthampy","html_url":"https://github.com/vivekthampy","followers_url":"https://api.github.com/users/vivekthampy/followers","following_url":"https://api.github.com/users/vivekthampy/following{/other_user}","gists_url":"https://api.github.com/users/vivekthampy/gists{/gist_id}","starred_url":"https://api.github.com/users/vivekthampy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vivekthampy/subscriptions","organizations_url":"https://api.github.com/users/vivekthampy/orgs","repos_url":"https://api.github.com/users/vivekthampy/repos","events_url":"https://api.github.com/users/vivekthampy/events{/privacy}","received_events_url":"https://api.github.com/users/vivekthampy/received_events","type":"User","site_admin":false},"body":"Here is an example notebook showing how the new functions and the ROI parameter can be used.\r\n\r\nPicking an ROI before processing images can significantly reduce processing times. \r\n\r\nAlso, add a convenience function to get a 3D numpy array from the pims generator returned by get_fastccd_images\r\n\r\nhttps://gist.github.com/vivekthampy/65c4a0c7513a76c34e96","created_at":"2016-02-29T07:06:44Z","updated_at":"2016-02-29T11:58:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":"be1cc90bfa4712bc000b343644d93ac96858d88d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/NSLS-II-CSX/csxtools/pulls/33/commits","review_comments_url":"https://api.github.com/repos/NSLS-II-CSX/csxtools/pulls/33/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/33/comments","statuses_url":"https://api.github.com/repos/NSLS-II-CSX/csxtools/statuses/6613aee2ff2690b2c0cf1c677bf0001c32012218","head":{"label":"vivekthampy:add_roi","ref":"add_roi","sha":"6613aee2ff2690b2c0cf1c677bf0001c32012218","user":{"login":"vivekthampy","id":9218704,"avatar_url":"https://avatars.githubusercontent.com/u/9218704?v=3","gravatar_id":"","url":"https://api.github.com/users/vivekthampy","html_url":"https://github.com/vivekthampy","followers_url":"https://api.github.com/users/vivekthampy/followers","following_url":"https://api.github.com/users/vivekthampy/following{/other_user}","gists_url":"https://api.github.com/users/vivekthampy/gists{/gist_id}","starred_url":"https://api.github.com/users/vivekthampy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vivekthampy/subscriptions","organizations_url":"https://api.github.com/users/vivekthampy/orgs","repos_url":"https://api.github.com/users/vivekthampy/repos","events_url":"https://api.github.com/users/vivekthampy/events{/privacy}","received_events_url":"https://api.github.com/users/vivekthampy/received_events","type":"User","site_admin":false},"repo":{"id":49460753,"name":"csxtools","full_name":"vivekthampy/csxtools","owner":{"login":"vivekthampy","id":9218704,"avatar_url":"https://avatars.githubusercontent.com/u/9218704?v=3","gravatar_id":"","url":"https://api.github.com/users/vivekthampy","html_url":"https://github.com/vivekthampy","followers_url":"https://api.github.com/users/vivekthampy/followers","following_url":"https://api.github.com/users/vivekthampy/following{/other_user}","gists_url":"https://api.github.com/users/vivekthampy/gists{/gist_id}","starred_url":"https://api.github.com/users/vivekthampy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vivekthampy/subscriptions","organizations_url":"https://api.github.com/users/vivekthampy/orgs","repos_url":"https://api.github.com/users/vivekthampy/repos","events_url":"https://api.github.com/users/vivekthampy/events{/privacy}","received_events_url":"https://api.github.com/users/vivekthampy/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/vivekthampy/csxtools","description":"Useful python tools for CSX (23-ID)","fork":true,"url":"https://api.github.com/repos/vivekthampy/csxtools","forks_url":"https://api.github.com/repos/vivekthampy/csxtools/forks","keys_url":"https://api.github.com/repos/vivekthampy/csxtools/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vivekthampy/csxtools/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vivekthampy/csxtools/teams","hooks_url":"https://api.github.com/repos/vivekthampy/csxtools/hooks","issue_events_url":"https://api.github.com/repos/vivekthampy/csxtools/issues/events{/number}","events_url":"https://api.github.com/repos/vivekthampy/csxtools/events","assignees_url":"https://api.github.com/repos/vivekthampy/csxtools/assignees{/user}","branches_url":"https://api.github.com/repos/vivekthampy/csxtools/branches{/branch}","tags_url":"https://api.github.com/repos/vivekthampy/csxtools/tags","blobs_url":"https://api.github.com/repos/vivekthampy/csxtools/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vivekthampy/csxtools/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vivekthampy/csxtools/git/refs{/sha}","trees_url":"https://api.github.com/repos/vivekthampy/csxtools/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vivekthampy/csxtools/statuses/{sha}","languages_url":"https://api.github.com/repos/vivekthampy/csxtools/languages","stargazers_url":"https://api.github.com/repos/vivekthampy/csxtools/stargazers","contributors_url":"https://api.github.com/repos/vivekthampy/csxtools/contributors","subscribers_url":"https://api.github.com/repos/vivekthampy/csxtools/subscribers","subscription_url":"https://api.github.com/repos/vivekthampy/csxtools/subscription","commits_url":"https://api.github.com/repos/vivekthampy/csxtools/commits{/sha}","git_commits_url":"https://api.github.com/repos/vivekthampy/csxtools/git/commits{/sha}","comments_url":"https://api.github.com/repos/vivekthampy/csxtools/comments{/number}","issue_comment_url":"https://api.github.com/repos/vivekthampy/csxtools/issues/comments{/number}","contents_url":"https://api.github.com/repos/vivekthampy/csxtools/contents/{+path}","compare_url":"https://api.github.com/repos/vivekthampy/csxtools/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vivekthampy/csxtools/merges","archive_url":"https://api.github.com/repos/vivekthampy/csxtools/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vivekthampy/csxtools/downloads","issues_url":"https://api.github.com/repos/vivekthampy/csxtools/issues{/number}","pulls_url":"https://api.github.com/repos/vivekthampy/csxtools/pulls{/number}","milestones_url":"https://api.github.com/repos/vivekthampy/csxtools/milestones{/number}","notifications_url":"https://api.github.com/repos/vivekthampy/csxtools/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vivekthampy/csxtools/labels{/name}","releases_url":"https://api.github.com/repos/vivekthampy/csxtools/releases{/id}","deployments_url":"https://api.github.com/repos/vivekthampy/csxtools/deployments","created_at":"2016-01-11T23:16:58Z","updated_at":"2016-01-11T23:16:59Z","pushed_at":"2016-02-29T07:52:07Z","git_url":"git://github.com/vivekthampy/csxtools.git","ssh_url":"git@github.com:vivekthampy/csxtools.git","clone_url":"https://github.com/vivekthampy/csxtools.git","svn_url":"https://github.com/vivekthampy/csxtools","homepage":null,"size":89257,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"NSLS-II-CSX:master","ref":"master","sha":"ab5ccba6bdb579447e9d0f8cd0340aee4ae0a0c8","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-29T07:52:07Z","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":78018,"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":4,"forks":5,"open_issues":4,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/NSLS-II-CSX/csxtools/pulls/33"},"html":{"href":"https://github.com/NSLS-II-CSX/csxtools/pull/33"},"issue":{"href":"https://api.github.com/repos/NSLS-II-CSX/csxtools/issues/33"},"comments":{"href":"https://api.github.com/repos/NSLS-II-CSX/csxtools/issues/33/comments"},"review_comments":{"href":"https://api.github.com/repos/NSLS-II-CSX/csxtools/pulls/33/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/33/commits"},"statuses":{"href":"https://api.github.com/repos/NSLS-II-CSX/csxtools/statuses/6613aee2ff2690b2c0cf1c677bf0001c32012218"}}}}