{"action":"created","comment":{"url":"https://api.github.com/repos/ligo-cbc/pycbc/pulls/comments/38866311","id":38866311,"diff_hunk":"@@ -220,3 +228,92 @@ def setup_matchedfltr_dax_generated(workflow, science_segs, datafind_outs,\n                            link_job_instance=link_job_instance,\n                            compatibility_mode=compatibility_mode)\n     return inspiral_outs\n+\n+def setup_matchedfltr_dax_generated_multi(workflow, science_segs, datafind_outs,\n+                                          tmplt_banks, output_dir,\n+                                          injection_file=None,\n+                                          tags=[], link_to_tmpltbank=False,\n+                                          compatibility_mode=False):\n+    '''\n+    Setup matched-filter jobs that are generated as part of the workflow in\n+    which a single job reads in and generates triggers over multiple ifos.\n+    This\n+    module can support any matched-filter code that is similar in principle to\n+    pycbc_multi_inspiral or lalapps_coh_PTF_inspiral, but for new codes some\n+    additions are needed to define Executable and Job sub-classes\n+    (see jobutils.py).\n+\n+    Parameters\n+    -----------\n+    workflow : pycbc.workflow.core.Workflow\n+        The Workflow instance that the coincidence jobs will be added to.\n+    science_segs : ifo-keyed dictionary of glue.segments.segmentlist instances\n+        The list of times that are being analysed in this workflow.\n+    datafind_outs : pycbc.workflow.core.FileList\n+        An FileList of the datafind files that are needed to obtain the\n+        data used in the analysis.\n+    tmplt_banks : pycbc.workflow.core.FileList\n+        An FileList of the template bank files that will serve as input\n+        in this stage.\n+    output_dir : path\n+        The directory in which output will be stored.\n+    injection_file : pycbc.workflow.core.File, optional (default=None)\n+        If given the file containing the simulation file to be sent to these\n+        jobs on the command line. If not given no file will be sent.\n+    tags : list of strings (optional, default = [])\n+        A list of the tagging strings that will be used for all jobs created\n+        by this call to the workflow. An example might be ['BNSINJECTIONS'] or\n+        ['NOINJECTIONANALYSIS']. This will be used in output names.\n+\n+    Returns\n+    -------\n+    inspiral_outs : pycbc.workflow.core.FileList\n+        A list of output files written by this stage. This *will not* contain\n+        any intermediate products produced within this stage of the workflow.\n+        If you require access to any intermediate products produced at this\n+        stage you can call the various sub-functions directly.\n+    '''\n+    #TODO: Get this to work with coh_PTF\n+    # Need to get the exe to figure out what sections are analysed, what is\n+    # discarded etc. This should *not* be hardcoded, so using a new executable\n+    # will require a bit of effort here ....\n+\n+    cp = workflow.cp\n+    ifos = science_segs.keys()\n+    match_fltr_exe = os.path.basename(cp.get('executables','inspiral'))\n+\n+    # Select the appropriate class\n+    exe_class = select_matchedfilter_class(match_fltr_exe)\n+\n+    # List for holding the output\n+    inspiral_outs = FileList([])\n+\n+    logging.info(\"Setting up matched-filtering for %s.\" %(' '.join(ifos),))\n+\n+    if match_fltr_exe == 'lalapps_coh_PTF_inspiral':\n+        #TODO: Have antenna.py automatically copied over into run directory.\n+\n+        #FIXME: There should be once class for inspiral jobs, perhaps one\n+        #       also for the inspiral injection jobs","path":"pycbc/workflow/matched_filter.py","position":94,"original_position":94,"commit_id":"b3f8160c8f2036933617d5aed33cd001d6347ecd","original_commit_id":"b3f8160c8f2036933617d5aed33cd001d6347ecd","user":{"login":"spxiwh","id":11438929,"avatar_url":"https://avatars.githubusercontent.com/u/11438929?v=3","gravatar_id":"","url":"https://api.github.com/users/spxiwh","html_url":"https://github.com/spxiwh","followers_url":"https://api.github.com/users/spxiwh/followers","following_url":"https://api.github.com/users/spxiwh/following{/other_user}","gists_url":"https://api.github.com/users/spxiwh/gists{/gist_id}","starred_url":"https://api.github.com/users/spxiwh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spxiwh/subscriptions","organizations_url":"https://api.github.com/users/spxiwh/orgs","repos_url":"https://api.github.com/users/spxiwh/repos","events_url":"https://api.github.com/users/spxiwh/events{/privacy}","received_events_url":"https://api.github.com/users/spxiwh/received_events","type":"User","site_admin":false},"body":"Is this still relevant?","created_at":"2015-09-07T14:36:16Z","updated_at":"2015-09-07T14:36:16Z","html_url":"https://github.com/ligo-cbc/pycbc/pull/240#discussion_r38866311","pull_request_url":"https://api.github.com/repos/ligo-cbc/pycbc/pulls/240","_links":{"self":{"href":"https://api.github.com/repos/ligo-cbc/pycbc/pulls/comments/38866311"},"html":{"href":"https://github.com/ligo-cbc/pycbc/pull/240#discussion_r38866311"},"pull_request":{"href":"https://api.github.com/repos/ligo-cbc/pycbc/pulls/240"}}},"pull_request":{"url":"https://api.github.com/repos/ligo-cbc/pycbc/pulls/240","id":44000632,"html_url":"https://github.com/ligo-cbc/pycbc/pull/240","diff_url":"https://github.com/ligo-cbc/pycbc/pull/240.diff","patch_url":"https://github.com/ligo-cbc/pycbc/pull/240.patch","issue_url":"https://api.github.com/repos/ligo-cbc/pycbc/issues/240","number":240,"state":"open","locked":false,"title":"Pygrb dev","user":{"login":"a-r-williamson","id":11477528,"avatar_url":"https://avatars.githubusercontent.com/u/11477528?v=3","gravatar_id":"","url":"https://api.github.com/users/a-r-williamson","html_url":"https://github.com/a-r-williamson","followers_url":"https://api.github.com/users/a-r-williamson/followers","following_url":"https://api.github.com/users/a-r-williamson/following{/other_user}","gists_url":"https://api.github.com/users/a-r-williamson/gists{/gist_id}","starred_url":"https://api.github.com/users/a-r-williamson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/a-r-williamson/subscriptions","organizations_url":"https://api.github.com/users/a-r-williamson/orgs","repos_url":"https://api.github.com/users/a-r-williamson/repos","events_url":"https://api.github.com/users/a-r-williamson/events{/privacy}","received_events_url":"https://api.github.com/users/a-r-williamson/received_events","type":"User","site_admin":false},"body":"This pull request contains all the commits for the development of pygrb since December (all but the segment generation function).","created_at":"2015-09-02T14:47:34Z","updated_at":"2015-09-07T14:36:16Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3278aeadf02a3c73bd5b24bf751fb724b6493874","assignee":{"login":"spxiwh","id":11438929,"avatar_url":"https://avatars.githubusercontent.com/u/11438929?v=3","gravatar_id":"","url":"https://api.github.com/users/spxiwh","html_url":"https://github.com/spxiwh","followers_url":"https://api.github.com/users/spxiwh/followers","following_url":"https://api.github.com/users/spxiwh/following{/other_user}","gists_url":"https://api.github.com/users/spxiwh/gists{/gist_id}","starred_url":"https://api.github.com/users/spxiwh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spxiwh/subscriptions","organizations_url":"https://api.github.com/users/spxiwh/orgs","repos_url":"https://api.github.com/users/spxiwh/repos","events_url":"https://api.github.com/users/spxiwh/events{/privacy}","received_events_url":"https://api.github.com/users/spxiwh/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/ligo-cbc/pycbc/pulls/240/commits","review_comments_url":"https://api.github.com/repos/ligo-cbc/pycbc/pulls/240/comments","review_comment_url":"https://api.github.com/repos/ligo-cbc/pycbc/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ligo-cbc/pycbc/issues/240/comments","statuses_url":"https://api.github.com/repos/ligo-cbc/pycbc/statuses/b3f8160c8f2036933617d5aed33cd001d6347ecd","head":{"label":"a-r-williamson:pygrb_dev","ref":"pygrb_dev","sha":"b3f8160c8f2036933617d5aed33cd001d6347ecd","user":{"login":"a-r-williamson","id":11477528,"avatar_url":"https://avatars.githubusercontent.com/u/11477528?v=3","gravatar_id":"","url":"https://api.github.com/users/a-r-williamson","html_url":"https://github.com/a-r-williamson","followers_url":"https://api.github.com/users/a-r-williamson/followers","following_url":"https://api.github.com/users/a-r-williamson/following{/other_user}","gists_url":"https://api.github.com/users/a-r-williamson/gists{/gist_id}","starred_url":"https://api.github.com/users/a-r-williamson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/a-r-williamson/subscriptions","organizations_url":"https://api.github.com/users/a-r-williamson/orgs","repos_url":"https://api.github.com/users/a-r-williamson/repos","events_url":"https://api.github.com/users/a-r-williamson/events{/privacy}","received_events_url":"https://api.github.com/users/a-r-williamson/received_events","type":"User","site_admin":false},"repo":{"id":37469170,"name":"pycbc","full_name":"a-r-williamson/pycbc","owner":{"login":"a-r-williamson","id":11477528,"avatar_url":"https://avatars.githubusercontent.com/u/11477528?v=3","gravatar_id":"","url":"https://api.github.com/users/a-r-williamson","html_url":"https://github.com/a-r-williamson","followers_url":"https://api.github.com/users/a-r-williamson/followers","following_url":"https://api.github.com/users/a-r-williamson/following{/other_user}","gists_url":"https://api.github.com/users/a-r-williamson/gists{/gist_id}","starred_url":"https://api.github.com/users/a-r-williamson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/a-r-williamson/subscriptions","organizations_url":"https://api.github.com/users/a-r-williamson/orgs","repos_url":"https://api.github.com/users/a-r-williamson/repos","events_url":"https://api.github.com/users/a-r-williamson/events{/privacy}","received_events_url":"https://api.github.com/users/a-r-williamson/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/a-r-williamson/pycbc","description":"Python CBC Tools","fork":true,"url":"https://api.github.com/repos/a-r-williamson/pycbc","forks_url":"https://api.github.com/repos/a-r-williamson/pycbc/forks","keys_url":"https://api.github.com/repos/a-r-williamson/pycbc/keys{/key_id}","collaborators_url":"https://api.github.com/repos/a-r-williamson/pycbc/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/a-r-williamson/pycbc/teams","hooks_url":"https://api.github.com/repos/a-r-williamson/pycbc/hooks","issue_events_url":"https://api.github.com/repos/a-r-williamson/pycbc/issues/events{/number}","events_url":"https://api.github.com/repos/a-r-williamson/pycbc/events","assignees_url":"https://api.github.com/repos/a-r-williamson/pycbc/assignees{/user}","branches_url":"https://api.github.com/repos/a-r-williamson/pycbc/branches{/branch}","tags_url":"https://api.github.com/repos/a-r-williamson/pycbc/tags","blobs_url":"https://api.github.com/repos/a-r-williamson/pycbc/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/a-r-williamson/pycbc/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/a-r-williamson/pycbc/git/refs{/sha}","trees_url":"https://api.github.com/repos/a-r-williamson/pycbc/git/trees{/sha}","statuses_url":"https://api.github.com/repos/a-r-williamson/pycbc/statuses/{sha}","languages_url":"https://api.github.com/repos/a-r-williamson/pycbc/languages","stargazers_url":"https://api.github.com/repos/a-r-williamson/pycbc/stargazers","contributors_url":"https://api.github.com/repos/a-r-williamson/pycbc/contributors","subscribers_url":"https://api.github.com/repos/a-r-williamson/pycbc/subscribers","subscription_url":"https://api.github.com/repos/a-r-williamson/pycbc/subscription","commits_url":"https://api.github.com/repos/a-r-williamson/pycbc/commits{/sha}","git_commits_url":"https://api.github.com/repos/a-r-williamson/pycbc/git/commits{/sha}","comments_url":"https://api.github.com/repos/a-r-williamson/pycbc/comments{/number}","issue_comment_url":"https://api.github.com/repos/a-r-williamson/pycbc/issues/comments{/number}","contents_url":"https://api.github.com/repos/a-r-williamson/pycbc/contents/{+path}","compare_url":"https://api.github.com/repos/a-r-williamson/pycbc/compare/{base}...{head}","merges_url":"https://api.github.com/repos/a-r-williamson/pycbc/merges","archive_url":"https://api.github.com/repos/a-r-williamson/pycbc/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/a-r-williamson/pycbc/downloads","issues_url":"https://api.github.com/repos/a-r-williamson/pycbc/issues{/number}","pulls_url":"https://api.github.com/repos/a-r-williamson/pycbc/pulls{/number}","milestones_url":"https://api.github.com/repos/a-r-williamson/pycbc/milestones{/number}","notifications_url":"https://api.github.com/repos/a-r-williamson/pycbc/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/a-r-williamson/pycbc/labels{/name}","releases_url":"https://api.github.com/repos/a-r-williamson/pycbc/releases{/id}","created_at":"2015-06-15T14:11:33Z","updated_at":"2015-06-29T10:52:07Z","pushed_at":"2015-09-03T14:44:34Z","git_url":"git://github.com/a-r-williamson/pycbc.git","ssh_url":"git@github.com:a-r-williamson/pycbc.git","clone_url":"https://github.com/a-r-williamson/pycbc.git","svn_url":"https://github.com/a-r-williamson/pycbc","homepage":null,"size":24737,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"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":"ligo-cbc:master","ref":"master","sha":"ee4c625f9692a976dab46ac5871ef703c36a1a09","user":{"login":"ligo-cbc","id":11262917,"avatar_url":"https://avatars.githubusercontent.com/u/11262917?v=3","gravatar_id":"","url":"https://api.github.com/users/ligo-cbc","html_url":"https://github.com/ligo-cbc","followers_url":"https://api.github.com/users/ligo-cbc/followers","following_url":"https://api.github.com/users/ligo-cbc/following{/other_user}","gists_url":"https://api.github.com/users/ligo-cbc/gists{/gist_id}","starred_url":"https://api.github.com/users/ligo-cbc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ligo-cbc/subscriptions","organizations_url":"https://api.github.com/users/ligo-cbc/orgs","repos_url":"https://api.github.com/users/ligo-cbc/repos","events_url":"https://api.github.com/users/ligo-cbc/events{/privacy}","received_events_url":"https://api.github.com/users/ligo-cbc/received_events","type":"Organization","site_admin":false},"repo":{"id":31596861,"name":"pycbc","full_name":"ligo-cbc/pycbc","owner":{"login":"ligo-cbc","id":11262917,"avatar_url":"https://avatars.githubusercontent.com/u/11262917?v=3","gravatar_id":"","url":"https://api.github.com/users/ligo-cbc","html_url":"https://github.com/ligo-cbc","followers_url":"https://api.github.com/users/ligo-cbc/followers","following_url":"https://api.github.com/users/ligo-cbc/following{/other_user}","gists_url":"https://api.github.com/users/ligo-cbc/gists{/gist_id}","starred_url":"https://api.github.com/users/ligo-cbc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ligo-cbc/subscriptions","organizations_url":"https://api.github.com/users/ligo-cbc/orgs","repos_url":"https://api.github.com/users/ligo-cbc/repos","events_url":"https://api.github.com/users/ligo-cbc/events{/privacy}","received_events_url":"https://api.github.com/users/ligo-cbc/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ligo-cbc/pycbc","description":"Python CBC Tools","fork":false,"url":"https://api.github.com/repos/ligo-cbc/pycbc","forks_url":"https://api.github.com/repos/ligo-cbc/pycbc/forks","keys_url":"https://api.github.com/repos/ligo-cbc/pycbc/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ligo-cbc/pycbc/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ligo-cbc/pycbc/teams","hooks_url":"https://api.github.com/repos/ligo-cbc/pycbc/hooks","issue_events_url":"https://api.github.com/repos/ligo-cbc/pycbc/issues/events{/number}","events_url":"https://api.github.com/repos/ligo-cbc/pycbc/events","assignees_url":"https://api.github.com/repos/ligo-cbc/pycbc/assignees{/user}","branches_url":"https://api.github.com/repos/ligo-cbc/pycbc/branches{/branch}","tags_url":"https://api.github.com/repos/ligo-cbc/pycbc/tags","blobs_url":"https://api.github.com/repos/ligo-cbc/pycbc/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ligo-cbc/pycbc/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ligo-cbc/pycbc/git/refs{/sha}","trees_url":"https://api.github.com/repos/ligo-cbc/pycbc/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ligo-cbc/pycbc/statuses/{sha}","languages_url":"https://api.github.com/repos/ligo-cbc/pycbc/languages","stargazers_url":"https://api.github.com/repos/ligo-cbc/pycbc/stargazers","contributors_url":"https://api.github.com/repos/ligo-cbc/pycbc/contributors","subscribers_url":"https://api.github.com/repos/ligo-cbc/pycbc/subscribers","subscription_url":"https://api.github.com/repos/ligo-cbc/pycbc/subscription","commits_url":"https://api.github.com/repos/ligo-cbc/pycbc/commits{/sha}","git_commits_url":"https://api.github.com/repos/ligo-cbc/pycbc/git/commits{/sha}","comments_url":"https://api.github.com/repos/ligo-cbc/pycbc/comments{/number}","issue_comment_url":"https://api.github.com/repos/ligo-cbc/pycbc/issues/comments{/number}","contents_url":"https://api.github.com/repos/ligo-cbc/pycbc/contents/{+path}","compare_url":"https://api.github.com/repos/ligo-cbc/pycbc/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ligo-cbc/pycbc/merges","archive_url":"https://api.github.com/repos/ligo-cbc/pycbc/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ligo-cbc/pycbc/downloads","issues_url":"https://api.github.com/repos/ligo-cbc/pycbc/issues{/number}","pulls_url":"https://api.github.com/repos/ligo-cbc/pycbc/pulls{/number}","milestones_url":"https://api.github.com/repos/ligo-cbc/pycbc/milestones{/number}","notifications_url":"https://api.github.com/repos/ligo-cbc/pycbc/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ligo-cbc/pycbc/labels{/name}","releases_url":"https://api.github.com/repos/ligo-cbc/pycbc/releases{/id}","created_at":"2015-03-03T12:19:19Z","updated_at":"2015-09-04T01:15:22Z","pushed_at":"2015-09-07T13:08:58Z","git_url":"git://github.com/ligo-cbc/pycbc.git","ssh_url":"git@github.com:ligo-cbc/pycbc.git","clone_url":"https://github.com/ligo-cbc/pycbc.git","svn_url":"https://github.com/ligo-cbc/pycbc","homepage":null,"size":40589,"stargazers_count":8,"watchers_count":8,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":28,"mirror_url":null,"open_issues_count":21,"forks":28,"open_issues":21,"watchers":8,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ligo-cbc/pycbc/pulls/240"},"html":{"href":"https://github.com/ligo-cbc/pycbc/pull/240"},"issue":{"href":"https://api.github.com/repos/ligo-cbc/pycbc/issues/240"},"comments":{"href":"https://api.github.com/repos/ligo-cbc/pycbc/issues/240/comments"},"review_comments":{"href":"https://api.github.com/repos/ligo-cbc/pycbc/pulls/240/comments"},"review_comment":{"href":"https://api.github.com/repos/ligo-cbc/pycbc/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ligo-cbc/pycbc/pulls/240/commits"},"statuses":{"href":"https://api.github.com/repos/ligo-cbc/pycbc/statuses/b3f8160c8f2036933617d5aed33cd001d6347ecd"}}}}