{"action":"created","comment":{"url":"https://api.github.com/repos/Kitware/romanesco/pulls/comments/38415523","id":38415523,"diff_hunk":"@@ -222,14 +206,10 @@ def get_analysis(filename):\n \n         for filename in validator_files:\n             analysis = get_analysis(filename)\n-            in_type = analysis[\"inputs\"][0][\"type\"]\n-            in_format = analysis[\"inputs\"][0][\"format\"]\n \n-            conv_graph.add_node(Validator(in_type, in_format), {\n-                \"type\": in_type,\n-                \"format\": in_format,\n-                \"validator\": analysis\n-            })\n+            conv_graph.add_node(Validator(analysis[\"inputs\"][0][\"type\"],\n+                                          analysis[\"inputs\"][0][\"format\"]),\n+                                analysis)","path":"romanesco/format/__init__.py","position":108,"original_position":108,"commit_id":"90b9588d033cb29adf7647ddd7e2929682897cf0","original_commit_id":"90b9588d033cb29adf7647ddd7e2929682897cf0","user":{"login":"kotfic","id":669959,"avatar_url":"https://avatars.githubusercontent.com/u/669959?v=3","gravatar_id":"","url":"https://api.github.com/users/kotfic","html_url":"https://github.com/kotfic","followers_url":"https://api.github.com/users/kotfic/followers","following_url":"https://api.github.com/users/kotfic/following{/other_user}","gists_url":"https://api.github.com/users/kotfic/gists{/gist_id}","starred_url":"https://api.github.com/users/kotfic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kotfic/subscriptions","organizations_url":"https://api.github.com/users/kotfic/orgs","repos_url":"https://api.github.com/users/kotfic/repos","events_url":"https://api.github.com/users/kotfic/events{/privacy}","received_events_url":"https://api.github.com/users/kotfic/received_events","type":"User","site_admin":false},"body":"Would it be nicer if we had a more consistent API for this -  e.g.,  ```get_input_type(analysis)```,  ```get_input_format(analysis)```  same for outputs?","created_at":"2015-09-01T13:04:34Z","updated_at":"2015-09-01T13:04:34Z","html_url":"https://github.com/Kitware/romanesco/pull/139#discussion_r38415523","pull_request_url":"https://api.github.com/repos/Kitware/romanesco/pulls/139","_links":{"self":{"href":"https://api.github.com/repos/Kitware/romanesco/pulls/comments/38415523"},"html":{"href":"https://github.com/Kitware/romanesco/pull/139#discussion_r38415523"},"pull_request":{"href":"https://api.github.com/repos/Kitware/romanesco/pulls/139"}}},"pull_request":{"url":"https://api.github.com/repos/Kitware/romanesco/pulls/139","id":43629514,"html_url":"https://github.com/Kitware/romanesco/pull/139","diff_url":"https://github.com/Kitware/romanesco/pull/139.diff","patch_url":"https://github.com/Kitware/romanesco/pull/139.patch","issue_url":"https://api.github.com/repos/Kitware/romanesco/issues/139","number":139,"state":"open","locked":false,"title":"Conversion Graph Cleanup","user":{"login":"danlamanna","id":608229,"avatar_url":"https://avatars.githubusercontent.com/u/608229?v=3","gravatar_id":"","url":"https://api.github.com/users/danlamanna","html_url":"https://github.com/danlamanna","followers_url":"https://api.github.com/users/danlamanna/followers","following_url":"https://api.github.com/users/danlamanna/following{/other_user}","gists_url":"https://api.github.com/users/danlamanna/gists{/gist_id}","starred_url":"https://api.github.com/users/danlamanna/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danlamanna/subscriptions","organizations_url":"https://api.github.com/users/danlamanna/orgs","repos_url":"https://api.github.com/users/danlamanna/repos","events_url":"https://api.github.com/users/danlamanna/events{/privacy}","received_events_url":"https://api.github.com/users/danlamanna/received_events","type":"User","site_admin":false},"body":"From f5de399:\r\n> Removing O(n) calls over NetworkX edges/nodes in favor of O(1) calls\r\nthrough their built-in data structures.\r\n\r\n> Removing node metadata that was never actually being used.\r\n\r\n> Simplifies get_validator so it just returns the runnable analysis.\r\n\r\nAlso fixed a couple of instances where I wasn't using ```six```.","created_at":"2015-08-28T13:49:58Z","updated_at":"2015-09-01T13:04:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fec3744dba9f65b438d9e815ca925f8413b2dac5","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Kitware/romanesco/pulls/139/commits","review_comments_url":"https://api.github.com/repos/Kitware/romanesco/pulls/139/comments","review_comment_url":"https://api.github.com/repos/Kitware/romanesco/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Kitware/romanesco/issues/139/comments","statuses_url":"https://api.github.com/repos/Kitware/romanesco/statuses/90b9588d033cb29adf7647ddd7e2929682897cf0","head":{"label":"Kitware:conv-graph-refactor","ref":"conv-graph-refactor","sha":"90b9588d033cb29adf7647ddd7e2929682897cf0","user":{"login":"Kitware","id":87549,"avatar_url":"https://avatars.githubusercontent.com/u/87549?v=3","gravatar_id":"","url":"https://api.github.com/users/Kitware","html_url":"https://github.com/Kitware","followers_url":"https://api.github.com/users/Kitware/followers","following_url":"https://api.github.com/users/Kitware/following{/other_user}","gists_url":"https://api.github.com/users/Kitware/gists{/gist_id}","starred_url":"https://api.github.com/users/Kitware/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kitware/subscriptions","organizations_url":"https://api.github.com/users/Kitware/orgs","repos_url":"https://api.github.com/users/Kitware/repos","events_url":"https://api.github.com/users/Kitware/events{/privacy}","received_events_url":"https://api.github.com/users/Kitware/received_events","type":"Organization","site_admin":false},"repo":{"id":18351718,"name":"romanesco","full_name":"Kitware/romanesco","owner":{"login":"Kitware","id":87549,"avatar_url":"https://avatars.githubusercontent.com/u/87549?v=3","gravatar_id":"","url":"https://api.github.com/users/Kitware","html_url":"https://github.com/Kitware","followers_url":"https://api.github.com/users/Kitware/followers","following_url":"https://api.github.com/users/Kitware/following{/other_user}","gists_url":"https://api.github.com/users/Kitware/gists{/gist_id}","starred_url":"https://api.github.com/users/Kitware/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kitware/subscriptions","organizations_url":"https://api.github.com/users/Kitware/orgs","repos_url":"https://api.github.com/users/Kitware/repos","events_url":"https://api.github.com/users/Kitware/events{/privacy}","received_events_url":"https://api.github.com/users/Kitware/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Kitware/romanesco","description":"A simple analytics execution engine.","fork":false,"url":"https://api.github.com/repos/Kitware/romanesco","forks_url":"https://api.github.com/repos/Kitware/romanesco/forks","keys_url":"https://api.github.com/repos/Kitware/romanesco/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Kitware/romanesco/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Kitware/romanesco/teams","hooks_url":"https://api.github.com/repos/Kitware/romanesco/hooks","issue_events_url":"https://api.github.com/repos/Kitware/romanesco/issues/events{/number}","events_url":"https://api.github.com/repos/Kitware/romanesco/events","assignees_url":"https://api.github.com/repos/Kitware/romanesco/assignees{/user}","branches_url":"https://api.github.com/repos/Kitware/romanesco/branches{/branch}","tags_url":"https://api.github.com/repos/Kitware/romanesco/tags","blobs_url":"https://api.github.com/repos/Kitware/romanesco/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Kitware/romanesco/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Kitware/romanesco/git/refs{/sha}","trees_url":"https://api.github.com/repos/Kitware/romanesco/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Kitware/romanesco/statuses/{sha}","languages_url":"https://api.github.com/repos/Kitware/romanesco/languages","stargazers_url":"https://api.github.com/repos/Kitware/romanesco/stargazers","contributors_url":"https://api.github.com/repos/Kitware/romanesco/contributors","subscribers_url":"https://api.github.com/repos/Kitware/romanesco/subscribers","subscription_url":"https://api.github.com/repos/Kitware/romanesco/subscription","commits_url":"https://api.github.com/repos/Kitware/romanesco/commits{/sha}","git_commits_url":"https://api.github.com/repos/Kitware/romanesco/git/commits{/sha}","comments_url":"https://api.github.com/repos/Kitware/romanesco/comments{/number}","issue_comment_url":"https://api.github.com/repos/Kitware/romanesco/issues/comments{/number}","contents_url":"https://api.github.com/repos/Kitware/romanesco/contents/{+path}","compare_url":"https://api.github.com/repos/Kitware/romanesco/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Kitware/romanesco/merges","archive_url":"https://api.github.com/repos/Kitware/romanesco/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Kitware/romanesco/downloads","issues_url":"https://api.github.com/repos/Kitware/romanesco/issues{/number}","pulls_url":"https://api.github.com/repos/Kitware/romanesco/pulls{/number}","milestones_url":"https://api.github.com/repos/Kitware/romanesco/milestones{/number}","notifications_url":"https://api.github.com/repos/Kitware/romanesco/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Kitware/romanesco/labels{/name}","releases_url":"https://api.github.com/repos/Kitware/romanesco/releases{/id}","created_at":"2014-04-02T02:10:24Z","updated_at":"2015-08-25T21:13:15Z","pushed_at":"2015-08-31T19:12:25Z","git_url":"git://github.com/Kitware/romanesco.git","ssh_url":"git@github.com:Kitware/romanesco.git","clone_url":"https://github.com/Kitware/romanesco.git","svn_url":"https://github.com/Kitware/romanesco","homepage":"http://www.tangelohub.org/romanesco/","size":2789,"stargazers_count":9,"watchers_count":9,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":32,"forks":4,"open_issues":32,"watchers":9,"default_branch":"master"}},"base":{"label":"Kitware:master","ref":"master","sha":"c72fef48c3ffa32d5b6f19997519502b79d12f69","user":{"login":"Kitware","id":87549,"avatar_url":"https://avatars.githubusercontent.com/u/87549?v=3","gravatar_id":"","url":"https://api.github.com/users/Kitware","html_url":"https://github.com/Kitware","followers_url":"https://api.github.com/users/Kitware/followers","following_url":"https://api.github.com/users/Kitware/following{/other_user}","gists_url":"https://api.github.com/users/Kitware/gists{/gist_id}","starred_url":"https://api.github.com/users/Kitware/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kitware/subscriptions","organizations_url":"https://api.github.com/users/Kitware/orgs","repos_url":"https://api.github.com/users/Kitware/repos","events_url":"https://api.github.com/users/Kitware/events{/privacy}","received_events_url":"https://api.github.com/users/Kitware/received_events","type":"Organization","site_admin":false},"repo":{"id":18351718,"name":"romanesco","full_name":"Kitware/romanesco","owner":{"login":"Kitware","id":87549,"avatar_url":"https://avatars.githubusercontent.com/u/87549?v=3","gravatar_id":"","url":"https://api.github.com/users/Kitware","html_url":"https://github.com/Kitware","followers_url":"https://api.github.com/users/Kitware/followers","following_url":"https://api.github.com/users/Kitware/following{/other_user}","gists_url":"https://api.github.com/users/Kitware/gists{/gist_id}","starred_url":"https://api.github.com/users/Kitware/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kitware/subscriptions","organizations_url":"https://api.github.com/users/Kitware/orgs","repos_url":"https://api.github.com/users/Kitware/repos","events_url":"https://api.github.com/users/Kitware/events{/privacy}","received_events_url":"https://api.github.com/users/Kitware/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Kitware/romanesco","description":"A simple analytics execution engine.","fork":false,"url":"https://api.github.com/repos/Kitware/romanesco","forks_url":"https://api.github.com/repos/Kitware/romanesco/forks","keys_url":"https://api.github.com/repos/Kitware/romanesco/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Kitware/romanesco/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Kitware/romanesco/teams","hooks_url":"https://api.github.com/repos/Kitware/romanesco/hooks","issue_events_url":"https://api.github.com/repos/Kitware/romanesco/issues/events{/number}","events_url":"https://api.github.com/repos/Kitware/romanesco/events","assignees_url":"https://api.github.com/repos/Kitware/romanesco/assignees{/user}","branches_url":"https://api.github.com/repos/Kitware/romanesco/branches{/branch}","tags_url":"https://api.github.com/repos/Kitware/romanesco/tags","blobs_url":"https://api.github.com/repos/Kitware/romanesco/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Kitware/romanesco/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Kitware/romanesco/git/refs{/sha}","trees_url":"https://api.github.com/repos/Kitware/romanesco/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Kitware/romanesco/statuses/{sha}","languages_url":"https://api.github.com/repos/Kitware/romanesco/languages","stargazers_url":"https://api.github.com/repos/Kitware/romanesco/stargazers","contributors_url":"https://api.github.com/repos/Kitware/romanesco/contributors","subscribers_url":"https://api.github.com/repos/Kitware/romanesco/subscribers","subscription_url":"https://api.github.com/repos/Kitware/romanesco/subscription","commits_url":"https://api.github.com/repos/Kitware/romanesco/commits{/sha}","git_commits_url":"https://api.github.com/repos/Kitware/romanesco/git/commits{/sha}","comments_url":"https://api.github.com/repos/Kitware/romanesco/comments{/number}","issue_comment_url":"https://api.github.com/repos/Kitware/romanesco/issues/comments{/number}","contents_url":"https://api.github.com/repos/Kitware/romanesco/contents/{+path}","compare_url":"https://api.github.com/repos/Kitware/romanesco/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Kitware/romanesco/merges","archive_url":"https://api.github.com/repos/Kitware/romanesco/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Kitware/romanesco/downloads","issues_url":"https://api.github.com/repos/Kitware/romanesco/issues{/number}","pulls_url":"https://api.github.com/repos/Kitware/romanesco/pulls{/number}","milestones_url":"https://api.github.com/repos/Kitware/romanesco/milestones{/number}","notifications_url":"https://api.github.com/repos/Kitware/romanesco/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Kitware/romanesco/labels{/name}","releases_url":"https://api.github.com/repos/Kitware/romanesco/releases{/id}","created_at":"2014-04-02T02:10:24Z","updated_at":"2015-08-25T21:13:15Z","pushed_at":"2015-08-31T19:12:25Z","git_url":"git://github.com/Kitware/romanesco.git","ssh_url":"git@github.com:Kitware/romanesco.git","clone_url":"https://github.com/Kitware/romanesco.git","svn_url":"https://github.com/Kitware/romanesco","homepage":"http://www.tangelohub.org/romanesco/","size":2789,"stargazers_count":9,"watchers_count":9,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":32,"forks":4,"open_issues":32,"watchers":9,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Kitware/romanesco/pulls/139"},"html":{"href":"https://github.com/Kitware/romanesco/pull/139"},"issue":{"href":"https://api.github.com/repos/Kitware/romanesco/issues/139"},"comments":{"href":"https://api.github.com/repos/Kitware/romanesco/issues/139/comments"},"review_comments":{"href":"https://api.github.com/repos/Kitware/romanesco/pulls/139/comments"},"review_comment":{"href":"https://api.github.com/repos/Kitware/romanesco/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Kitware/romanesco/pulls/139/commits"},"statuses":{"href":"https://api.github.com/repos/Kitware/romanesco/statuses/90b9588d033cb29adf7647ddd7e2929682897cf0"}}}}