{"action":"created","comment":{"url":"https://api.github.com/repos/NSLS-II-CSX/csxtools/pulls/comments/178634520","pull_request_review_id":108723223,"id":178634520,"diff_hunk":"@@ -178,7 +178,10 @@ def get_images_to_3D(images, dtype=None):\n \n def _get_images(header, tag, roi=None):\n     t = ttime.time()\n-    images = header.db.get_images(header, tag)\n+    if isinstance(header, (list, tuple)):\n+        images = header[0].data(tag)","path":"csxtools/utils.py","position":6,"original_position":6,"commit_id":"d85528558cb53cd43fe5e701a3217e97e4ee9e62","original_commit_id":"d85528558cb53cd43fe5e701a3217e97e4ee9e62","user":{"login":"mrakitin","id":13209176,"avatar_url":"https://avatars0.githubusercontent.com/u/13209176?v=4","gravatar_id":"","url":"https://api.github.com/users/mrakitin","html_url":"https://github.com/mrakitin","followers_url":"https://api.github.com/users/mrakitin/followers","following_url":"https://api.github.com/users/mrakitin/following{/other_user}","gists_url":"https://api.github.com/users/mrakitin/gists{/gist_id}","starred_url":"https://api.github.com/users/mrakitin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrakitin/subscriptions","organizations_url":"https://api.github.com/users/mrakitin/orgs","repos_url":"https://api.github.com/users/mrakitin/repos","events_url":"https://api.github.com/users/mrakitin/events{/privacy}","received_events_url":"https://api.github.com/users/mrakitin/received_events","type":"User","site_admin":false},"body":"Corrected the code above.","created_at":"2018-04-02T20:01:23Z","updated_at":"2018-04-02T20:01:23Z","html_url":"https://github.com/NSLS-II-CSX/csxtools/pull/61#discussion_r178634520","pull_request_url":"https://api.github.com/repos/NSLS-II-CSX/csxtools/pulls/61","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/NSLS-II-CSX/csxtools/pulls/comments/178634520"},"html":{"href":"https://github.com/NSLS-II-CSX/csxtools/pull/61#discussion_r178634520"},"pull_request":{"href":"https://api.github.com/repos/NSLS-II-CSX/csxtools/pulls/61"}},"in_reply_to_id":178625174},"pull_request":{"url":"https://api.github.com/repos/NSLS-II-CSX/csxtools/pulls/61","id":178627894,"html_url":"https://github.com/NSLS-II-CSX/csxtools/pull/61","diff_url":"https://github.com/NSLS-II-CSX/csxtools/pull/61.diff","patch_url":"https://github.com/NSLS-II-CSX/csxtools/pull/61.patch","issue_url":"https://api.github.com/repos/NSLS-II-CSX/csxtools/issues/61","number":61,"state":"open","locked":false,"title":"DEV: _get_images can take header or list of headers as input","user":{"login":"licode","id":4765544,"avatar_url":"https://avatars3.githubusercontent.com/u/4765544?v=4","gravatar_id":"","url":"https://api.github.com/users/licode","html_url":"https://github.com/licode","followers_url":"https://api.github.com/users/licode/followers","following_url":"https://api.github.com/users/licode/following{/other_user}","gists_url":"https://api.github.com/users/licode/gists{/gist_id}","starred_url":"https://api.github.com/users/licode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/licode/subscriptions","organizations_url":"https://api.github.com/users/licode/orgs","repos_url":"https://api.github.com/users/licode/repos","events_url":"https://api.github.com/users/licode/events{/privacy}","received_events_url":"https://api.github.com/users/licode/received_events","type":"User","site_admin":false},"body":"This is to be compatible with previous api that _get_images can take list of headers as input.","created_at":"2018-03-30T20:16:41Z","updated_at":"2018-04-02T20:01:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3e60acb171080694ddc7a3b99f70712972f1146e","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/NSLS-II-CSX/csxtools/pulls/61/commits","review_comments_url":"https://api.github.com/repos/NSLS-II-CSX/csxtools/pulls/61/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/61/comments","statuses_url":"https://api.github.com/repos/NSLS-II-CSX/csxtools/statuses/d85528558cb53cd43fe5e701a3217e97e4ee9e62","head":{"label":"licode:multi_headers","ref":"multi_headers","sha":"d85528558cb53cd43fe5e701a3217e97e4ee9e62","user":{"login":"licode","id":4765544,"avatar_url":"https://avatars3.githubusercontent.com/u/4765544?v=4","gravatar_id":"","url":"https://api.github.com/users/licode","html_url":"https://github.com/licode","followers_url":"https://api.github.com/users/licode/followers","following_url":"https://api.github.com/users/licode/following{/other_user}","gists_url":"https://api.github.com/users/licode/gists{/gist_id}","starred_url":"https://api.github.com/users/licode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/licode/subscriptions","organizations_url":"https://api.github.com/users/licode/orgs","repos_url":"https://api.github.com/users/licode/repos","events_url":"https://api.github.com/users/licode/events{/privacy}","received_events_url":"https://api.github.com/users/licode/received_events","type":"User","site_admin":false},"repo":{"id":127467833,"name":"csxtools","full_name":"licode/csxtools","owner":{"login":"licode","id":4765544,"avatar_url":"https://avatars3.githubusercontent.com/u/4765544?v=4","gravatar_id":"","url":"https://api.github.com/users/licode","html_url":"https://github.com/licode","followers_url":"https://api.github.com/users/licode/followers","following_url":"https://api.github.com/users/licode/following{/other_user}","gists_url":"https://api.github.com/users/licode/gists{/gist_id}","starred_url":"https://api.github.com/users/licode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/licode/subscriptions","organizations_url":"https://api.github.com/users/licode/orgs","repos_url":"https://api.github.com/users/licode/repos","events_url":"https://api.github.com/users/licode/events{/privacy}","received_events_url":"https://api.github.com/users/licode/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/licode/csxtools","description":"Useful python tools for CSX (23-ID)","fork":true,"url":"https://api.github.com/repos/licode/csxtools","forks_url":"https://api.github.com/repos/licode/csxtools/forks","keys_url":"https://api.github.com/repos/licode/csxtools/keys{/key_id}","collaborators_url":"https://api.github.com/repos/licode/csxtools/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/licode/csxtools/teams","hooks_url":"https://api.github.com/repos/licode/csxtools/hooks","issue_events_url":"https://api.github.com/repos/licode/csxtools/issues/events{/number}","events_url":"https://api.github.com/repos/licode/csxtools/events","assignees_url":"https://api.github.com/repos/licode/csxtools/assignees{/user}","branches_url":"https://api.github.com/repos/licode/csxtools/branches{/branch}","tags_url":"https://api.github.com/repos/licode/csxtools/tags","blobs_url":"https://api.github.com/repos/licode/csxtools/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/licode/csxtools/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/licode/csxtools/git/refs{/sha}","trees_url":"https://api.github.com/repos/licode/csxtools/git/trees{/sha}","statuses_url":"https://api.github.com/repos/licode/csxtools/statuses/{sha}","languages_url":"https://api.github.com/repos/licode/csxtools/languages","stargazers_url":"https://api.github.com/repos/licode/csxtools/stargazers","contributors_url":"https://api.github.com/repos/licode/csxtools/contributors","subscribers_url":"https://api.github.com/repos/licode/csxtools/subscribers","subscription_url":"https://api.github.com/repos/licode/csxtools/subscription","commits_url":"https://api.github.com/repos/licode/csxtools/commits{/sha}","git_commits_url":"https://api.github.com/repos/licode/csxtools/git/commits{/sha}","comments_url":"https://api.github.com/repos/licode/csxtools/comments{/number}","issue_comment_url":"https://api.github.com/repos/licode/csxtools/issues/comments{/number}","contents_url":"https://api.github.com/repos/licode/csxtools/contents/{+path}","compare_url":"https://api.github.com/repos/licode/csxtools/compare/{base}...{head}","merges_url":"https://api.github.com/repos/licode/csxtools/merges","archive_url":"https://api.github.com/repos/licode/csxtools/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/licode/csxtools/downloads","issues_url":"https://api.github.com/repos/licode/csxtools/issues{/number}","pulls_url":"https://api.github.com/repos/licode/csxtools/pulls{/number}","milestones_url":"https://api.github.com/repos/licode/csxtools/milestones{/number}","notifications_url":"https://api.github.com/repos/licode/csxtools/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/licode/csxtools/labels{/name}","releases_url":"https://api.github.com/repos/licode/csxtools/releases{/id}","deployments_url":"https://api.github.com/repos/licode/csxtools/deployments","created_at":"2018-03-30T19:57:54Z","updated_at":"2018-03-30T19:57:56Z","pushed_at":"2018-04-02T14:40:40Z","git_url":"git://github.com/licode/csxtools.git","ssh_url":"git@github.com:licode/csxtools.git","clone_url":"https://github.com/licode/csxtools.git","svn_url":"https://github.com/licode/csxtools","homepage":"http://nsls-ii-csx.github.io/csxtools","size":76042,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"NSLS-II-CSX:master","ref":"master","sha":"372787065423ca933e992e11e17c7f520f611b75","user":{"login":"NSLS-II-CSX","id":6436775,"avatar_url":"https://avatars2.githubusercontent.com/u/6436775?v=4","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://avatars2.githubusercontent.com/u/6436775?v=4","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":"2017-08-01T11:17:25Z","pushed_at":"2018-04-02T14:40:41Z","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":76037,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":8,"mirror_url":null,"archived":false,"open_issues_count":7,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":8,"open_issues":7,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/NSLS-II-CSX/csxtools/pulls/61"},"html":{"href":"https://github.com/NSLS-II-CSX/csxtools/pull/61"},"issue":{"href":"https://api.github.com/repos/NSLS-II-CSX/csxtools/issues/61"},"comments":{"href":"https://api.github.com/repos/NSLS-II-CSX/csxtools/issues/61/comments"},"review_comments":{"href":"https://api.github.com/repos/NSLS-II-CSX/csxtools/pulls/61/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/61/commits"},"statuses":{"href":"https://api.github.com/repos/NSLS-II-CSX/csxtools/statuses/d85528558cb53cd43fe5e701a3217e97e4ee9e62"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"mrakitin"}}