{"action":"created","comment":{"url":"https://api.github.com/repos/xpdAcq/SHED/pulls/comments/133707665","pull_request_review_id":56919172,"id":133707665,"diff_hunk":"@@ -653,10 +657,24 @@ class filter(EventStream):\n     >>> L = m.sink_to_list()\n     >>> for doc in g: z = source.emit(doc)\n     >>> assert len(L) == 5\n+\n+    Filtering full headers\n+\n+    >>> from shed.utils import to_event_model\n+    >>> from streamz import Stream\n+    >>> import shed.event_streams as es\n+    >>> a = [1, 2, 3]  # base data\n+    >>> g = to_event_model(a, [('det', {'dtype': 'float'})])\n+    >>> source = Stream()\n+    >>> m = es.filter(es.dstar(lambda x: x>1), source, input_info={'x': 'det'})\n+    >>> l = m.sink(print)\n+    >>> L = m.sink_to_list()\n+    >>> for doc in g: z = source.emit(doc)\n+    >>> assert len(L) == 5","path":"shed/event_streams.py","position":37,"original_position":37,"commit_id":"608e3a48b7e15d393f1fa2ae0d9de0e135d639d2","original_commit_id":"608e3a48b7e15d393f1fa2ae0d9de0e135d639d2","user":{"login":"ordirules","id":705366,"avatar_url":"https://avatars2.githubusercontent.com/u/705366?v=4","gravatar_id":"","url":"https://api.github.com/users/ordirules","html_url":"https://github.com/ordirules","followers_url":"https://api.github.com/users/ordirules/followers","following_url":"https://api.github.com/users/ordirules/following{/other_user}","gists_url":"https://api.github.com/users/ordirules/gists{/gist_id}","starred_url":"https://api.github.com/users/ordirules/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ordirules/subscriptions","organizations_url":"https://api.github.com/users/ordirules/orgs","repos_url":"https://api.github.com/users/ordirules/repos","events_url":"https://api.github.com/users/ordirules/events{/privacy}","received_events_url":"https://api.github.com/users/ordirules/received_events","type":"User","site_admin":false},"body":"also verify this is intended output","created_at":"2017-08-17T13:11:14Z","updated_at":"2017-08-17T13:11:14Z","html_url":"https://github.com/xpdAcq/SHED/pull/61#discussion_r133707665","pull_request_url":"https://api.github.com/repos/xpdAcq/SHED/pulls/61","_links":{"self":{"href":"https://api.github.com/repos/xpdAcq/SHED/pulls/comments/133707665"},"html":{"href":"https://github.com/xpdAcq/SHED/pull/61#discussion_r133707665"},"pull_request":{"href":"https://api.github.com/repos/xpdAcq/SHED/pulls/61"}}},"pull_request":{"url":"https://api.github.com/repos/xpdAcq/SHED/pulls/61","id":136164927,"html_url":"https://github.com/xpdAcq/SHED/pull/61","diff_url":"https://github.com/xpdAcq/SHED/pull/61.diff","patch_url":"https://github.com/xpdAcq/SHED/pull/61.patch","issue_url":"https://api.github.com/repos/xpdAcq/SHED/issues/61","number":61,"state":"open","locked":false,"title":"Filter start","user":{"login":"CJ-Wright","id":6740689,"avatar_url":"https://avatars3.githubusercontent.com/u/6740689?v=4","gravatar_id":"","url":"https://api.github.com/users/CJ-Wright","html_url":"https://github.com/CJ-Wright","followers_url":"https://api.github.com/users/CJ-Wright/followers","following_url":"https://api.github.com/users/CJ-Wright/following{/other_user}","gists_url":"https://api.github.com/users/CJ-Wright/gists{/gist_id}","starred_url":"https://api.github.com/users/CJ-Wright/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CJ-Wright/subscriptions","organizations_url":"https://api.github.com/users/CJ-Wright/orgs","repos_url":"https://api.github.com/users/CJ-Wright/repos","events_url":"https://api.github.com/users/CJ-Wright/events{/privacy}","received_events_url":"https://api.github.com/users/CJ-Wright/received_events","type":"User","site_admin":false},"body":"We want the capacity to filter entire headers based offed of their starts. This will allow us to choose between pipelines based off of the start data.\r\nEg\r\n1. Get data from RunEngine\r\n1. Inspect if data is calibration\r\n    1. If calibration run calibration pipeline\r\n    1. Else run other filters/pipelines\r\n\r\nOne side effect of this is that we can setup a series of filters to check that we have pipelines to analyze the data otherwise do nothing rather than trying to analyze data we don't understand","created_at":"2017-08-17T03:12:32Z","updated_at":"2017-08-17T13:11:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":"175446cb4bad9be708f869a99239988884a70fa5","assignee":{"login":"CJ-Wright","id":6740689,"avatar_url":"https://avatars3.githubusercontent.com/u/6740689?v=4","gravatar_id":"","url":"https://api.github.com/users/CJ-Wright","html_url":"https://github.com/CJ-Wright","followers_url":"https://api.github.com/users/CJ-Wright/followers","following_url":"https://api.github.com/users/CJ-Wright/following{/other_user}","gists_url":"https://api.github.com/users/CJ-Wright/gists{/gist_id}","starred_url":"https://api.github.com/users/CJ-Wright/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CJ-Wright/subscriptions","organizations_url":"https://api.github.com/users/CJ-Wright/orgs","repos_url":"https://api.github.com/users/CJ-Wright/repos","events_url":"https://api.github.com/users/CJ-Wright/events{/privacy}","received_events_url":"https://api.github.com/users/CJ-Wright/received_events","type":"User","site_admin":false},"assignees":[{"login":"CJ-Wright","id":6740689,"avatar_url":"https://avatars3.githubusercontent.com/u/6740689?v=4","gravatar_id":"","url":"https://api.github.com/users/CJ-Wright","html_url":"https://github.com/CJ-Wright","followers_url":"https://api.github.com/users/CJ-Wright/followers","following_url":"https://api.github.com/users/CJ-Wright/following{/other_user}","gists_url":"https://api.github.com/users/CJ-Wright/gists{/gist_id}","starred_url":"https://api.github.com/users/CJ-Wright/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CJ-Wright/subscriptions","organizations_url":"https://api.github.com/users/CJ-Wright/orgs","repos_url":"https://api.github.com/users/CJ-Wright/repos","events_url":"https://api.github.com/users/CJ-Wright/events{/privacy}","received_events_url":"https://api.github.com/users/CJ-Wright/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/xpdAcq/SHED/pulls/61/commits","review_comments_url":"https://api.github.com/repos/xpdAcq/SHED/pulls/61/comments","review_comment_url":"https://api.github.com/repos/xpdAcq/SHED/pulls/comments{/number}","comments_url":"https://api.github.com/repos/xpdAcq/SHED/issues/61/comments","statuses_url":"https://api.github.com/repos/xpdAcq/SHED/statuses/608e3a48b7e15d393f1fa2ae0d9de0e135d639d2","head":{"label":"CJ-Wright:filter_start","ref":"filter_start","sha":"608e3a48b7e15d393f1fa2ae0d9de0e135d639d2","user":{"login":"CJ-Wright","id":6740689,"avatar_url":"https://avatars3.githubusercontent.com/u/6740689?v=4","gravatar_id":"","url":"https://api.github.com/users/CJ-Wright","html_url":"https://github.com/CJ-Wright","followers_url":"https://api.github.com/users/CJ-Wright/followers","following_url":"https://api.github.com/users/CJ-Wright/following{/other_user}","gists_url":"https://api.github.com/users/CJ-Wright/gists{/gist_id}","starred_url":"https://api.github.com/users/CJ-Wright/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CJ-Wright/subscriptions","organizations_url":"https://api.github.com/users/CJ-Wright/orgs","repos_url":"https://api.github.com/users/CJ-Wright/repos","events_url":"https://api.github.com/users/CJ-Wright/events{/privacy}","received_events_url":"https://api.github.com/users/CJ-Wright/received_events","type":"User","site_admin":false},"repo":{"id":74509961,"name":"SHED","full_name":"CJ-Wright/SHED","owner":{"login":"CJ-Wright","id":6740689,"avatar_url":"https://avatars3.githubusercontent.com/u/6740689?v=4","gravatar_id":"","url":"https://api.github.com/users/CJ-Wright","html_url":"https://github.com/CJ-Wright","followers_url":"https://api.github.com/users/CJ-Wright/followers","following_url":"https://api.github.com/users/CJ-Wright/following{/other_user}","gists_url":"https://api.github.com/users/CJ-Wright/gists{/gist_id}","starred_url":"https://api.github.com/users/CJ-Wright/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CJ-Wright/subscriptions","organizations_url":"https://api.github.com/users/CJ-Wright/orgs","repos_url":"https://api.github.com/users/CJ-Wright/repos","events_url":"https://api.github.com/users/CJ-Wright/events{/privacy}","received_events_url":"https://api.github.com/users/CJ-Wright/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/CJ-Wright/SHED","description":"a data processing interface","fork":true,"url":"https://api.github.com/repos/CJ-Wright/SHED","forks_url":"https://api.github.com/repos/CJ-Wright/SHED/forks","keys_url":"https://api.github.com/repos/CJ-Wright/SHED/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CJ-Wright/SHED/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CJ-Wright/SHED/teams","hooks_url":"https://api.github.com/repos/CJ-Wright/SHED/hooks","issue_events_url":"https://api.github.com/repos/CJ-Wright/SHED/issues/events{/number}","events_url":"https://api.github.com/repos/CJ-Wright/SHED/events","assignees_url":"https://api.github.com/repos/CJ-Wright/SHED/assignees{/user}","branches_url":"https://api.github.com/repos/CJ-Wright/SHED/branches{/branch}","tags_url":"https://api.github.com/repos/CJ-Wright/SHED/tags","blobs_url":"https://api.github.com/repos/CJ-Wright/SHED/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CJ-Wright/SHED/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CJ-Wright/SHED/git/refs{/sha}","trees_url":"https://api.github.com/repos/CJ-Wright/SHED/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CJ-Wright/SHED/statuses/{sha}","languages_url":"https://api.github.com/repos/CJ-Wright/SHED/languages","stargazers_url":"https://api.github.com/repos/CJ-Wright/SHED/stargazers","contributors_url":"https://api.github.com/repos/CJ-Wright/SHED/contributors","subscribers_url":"https://api.github.com/repos/CJ-Wright/SHED/subscribers","subscription_url":"https://api.github.com/repos/CJ-Wright/SHED/subscription","commits_url":"https://api.github.com/repos/CJ-Wright/SHED/commits{/sha}","git_commits_url":"https://api.github.com/repos/CJ-Wright/SHED/git/commits{/sha}","comments_url":"https://api.github.com/repos/CJ-Wright/SHED/comments{/number}","issue_comment_url":"https://api.github.com/repos/CJ-Wright/SHED/issues/comments{/number}","contents_url":"https://api.github.com/repos/CJ-Wright/SHED/contents/{+path}","compare_url":"https://api.github.com/repos/CJ-Wright/SHED/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CJ-Wright/SHED/merges","archive_url":"https://api.github.com/repos/CJ-Wright/SHED/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CJ-Wright/SHED/downloads","issues_url":"https://api.github.com/repos/CJ-Wright/SHED/issues{/number}","pulls_url":"https://api.github.com/repos/CJ-Wright/SHED/pulls{/number}","milestones_url":"https://api.github.com/repos/CJ-Wright/SHED/milestones{/number}","notifications_url":"https://api.github.com/repos/CJ-Wright/SHED/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CJ-Wright/SHED/labels{/name}","releases_url":"https://api.github.com/repos/CJ-Wright/SHED/releases{/id}","deployments_url":"https://api.github.com/repos/CJ-Wright/SHED/deployments","created_at":"2016-11-22T20:21:38Z","updated_at":"2017-07-25T21:43:20Z","pushed_at":"2017-08-17T03:09:42Z","git_url":"git://github.com/CJ-Wright/SHED.git","ssh_url":"git@github.com:CJ-Wright/SHED.git","clone_url":"https://github.com/CJ-Wright/SHED.git","svn_url":"https://github.com/CJ-Wright/SHED","homepage":null,"size":4670,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"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":"xpdAcq:master","ref":"master","sha":"f1e4eff6ec4564979cdc40105030ef6864a83978","user":{"login":"xpdAcq","id":17029040,"avatar_url":"https://avatars3.githubusercontent.com/u/17029040?v=4","gravatar_id":"","url":"https://api.github.com/users/xpdAcq","html_url":"https://github.com/xpdAcq","followers_url":"https://api.github.com/users/xpdAcq/followers","following_url":"https://api.github.com/users/xpdAcq/following{/other_user}","gists_url":"https://api.github.com/users/xpdAcq/gists{/gist_id}","starred_url":"https://api.github.com/users/xpdAcq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xpdAcq/subscriptions","organizations_url":"https://api.github.com/users/xpdAcq/orgs","repos_url":"https://api.github.com/users/xpdAcq/repos","events_url":"https://api.github.com/users/xpdAcq/events{/privacy}","received_events_url":"https://api.github.com/users/xpdAcq/received_events","type":"Organization","site_admin":false},"repo":{"id":74509949,"name":"SHED","full_name":"xpdAcq/SHED","owner":{"login":"xpdAcq","id":17029040,"avatar_url":"https://avatars3.githubusercontent.com/u/17029040?v=4","gravatar_id":"","url":"https://api.github.com/users/xpdAcq","html_url":"https://github.com/xpdAcq","followers_url":"https://api.github.com/users/xpdAcq/followers","following_url":"https://api.github.com/users/xpdAcq/following{/other_user}","gists_url":"https://api.github.com/users/xpdAcq/gists{/gist_id}","starred_url":"https://api.github.com/users/xpdAcq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xpdAcq/subscriptions","organizations_url":"https://api.github.com/users/xpdAcq/orgs","repos_url":"https://api.github.com/users/xpdAcq/repos","events_url":"https://api.github.com/users/xpdAcq/events{/privacy}","received_events_url":"https://api.github.com/users/xpdAcq/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/xpdAcq/SHED","description":"Streaming Heterogeneous Event Data","fork":false,"url":"https://api.github.com/repos/xpdAcq/SHED","forks_url":"https://api.github.com/repos/xpdAcq/SHED/forks","keys_url":"https://api.github.com/repos/xpdAcq/SHED/keys{/key_id}","collaborators_url":"https://api.github.com/repos/xpdAcq/SHED/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/xpdAcq/SHED/teams","hooks_url":"https://api.github.com/repos/xpdAcq/SHED/hooks","issue_events_url":"https://api.github.com/repos/xpdAcq/SHED/issues/events{/number}","events_url":"https://api.github.com/repos/xpdAcq/SHED/events","assignees_url":"https://api.github.com/repos/xpdAcq/SHED/assignees{/user}","branches_url":"https://api.github.com/repos/xpdAcq/SHED/branches{/branch}","tags_url":"https://api.github.com/repos/xpdAcq/SHED/tags","blobs_url":"https://api.github.com/repos/xpdAcq/SHED/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/xpdAcq/SHED/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/xpdAcq/SHED/git/refs{/sha}","trees_url":"https://api.github.com/repos/xpdAcq/SHED/git/trees{/sha}","statuses_url":"https://api.github.com/repos/xpdAcq/SHED/statuses/{sha}","languages_url":"https://api.github.com/repos/xpdAcq/SHED/languages","stargazers_url":"https://api.github.com/repos/xpdAcq/SHED/stargazers","contributors_url":"https://api.github.com/repos/xpdAcq/SHED/contributors","subscribers_url":"https://api.github.com/repos/xpdAcq/SHED/subscribers","subscription_url":"https://api.github.com/repos/xpdAcq/SHED/subscription","commits_url":"https://api.github.com/repos/xpdAcq/SHED/commits{/sha}","git_commits_url":"https://api.github.com/repos/xpdAcq/SHED/git/commits{/sha}","comments_url":"https://api.github.com/repos/xpdAcq/SHED/comments{/number}","issue_comment_url":"https://api.github.com/repos/xpdAcq/SHED/issues/comments{/number}","contents_url":"https://api.github.com/repos/xpdAcq/SHED/contents/{+path}","compare_url":"https://api.github.com/repos/xpdAcq/SHED/compare/{base}...{head}","merges_url":"https://api.github.com/repos/xpdAcq/SHED/merges","archive_url":"https://api.github.com/repos/xpdAcq/SHED/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/xpdAcq/SHED/downloads","issues_url":"https://api.github.com/repos/xpdAcq/SHED/issues{/number}","pulls_url":"https://api.github.com/repos/xpdAcq/SHED/pulls{/number}","milestones_url":"https://api.github.com/repos/xpdAcq/SHED/milestones{/number}","notifications_url":"https://api.github.com/repos/xpdAcq/SHED/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/xpdAcq/SHED/labels{/name}","releases_url":"https://api.github.com/repos/xpdAcq/SHED/releases{/id}","deployments_url":"https://api.github.com/repos/xpdAcq/SHED/deployments","created_at":"2016-11-22T20:21:31Z","updated_at":"2017-07-25T21:38:51Z","pushed_at":"2017-08-17T03:12:33Z","git_url":"git://github.com/xpdAcq/SHED.git","ssh_url":"git@github.com:xpdAcq/SHED.git","clone_url":"https://github.com/xpdAcq/SHED.git","svn_url":"https://github.com/xpdAcq/SHED","homepage":"https://xpdacq.github.io/SHED/","size":2287,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":2,"mirror_url":null,"open_issues_count":26,"forks":2,"open_issues":26,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/xpdAcq/SHED/pulls/61"},"html":{"href":"https://github.com/xpdAcq/SHED/pull/61"},"issue":{"href":"https://api.github.com/repos/xpdAcq/SHED/issues/61"},"comments":{"href":"https://api.github.com/repos/xpdAcq/SHED/issues/61/comments"},"review_comments":{"href":"https://api.github.com/repos/xpdAcq/SHED/pulls/61/comments"},"review_comment":{"href":"https://api.github.com/repos/xpdAcq/SHED/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/xpdAcq/SHED/pulls/61/commits"},"statuses":{"href":"https://api.github.com/repos/xpdAcq/SHED/statuses/608e3a48b7e15d393f1fa2ae0d9de0e135d639d2"}}}}
{"actor":{"display_login":"ordirules"}}