{"action":"created","comment":{"url":"https://api.github.com/repos/lsst/pipe_tasks/pulls/comments/63315469","id":63315469,"diff_hunk":"@@ -518,7 +526,10 @@ def run(self, sensorRef, templateIdList=None):\n \n             if self.config.doMeasurement:\n                 self.log.info(\"Running diaSource measurement\")\n-                self.measurement.run(diaSources, subtractedExposure)\n+                if not self.config.doMeasurementNew:\n+                    self.measurement.run(diaSources, subtractedExposure)\n+                else:\n+                    self.measurement.run(diaSources, subtractedExposure, exposure, templateExposure)","path":"python/lsst/pipe/tasks/imageDifference.py","position":55,"original_position":55,"commit_id":"cc41b052f31b940159ca6c2e24d3f1ffe07db57e","original_commit_id":"cc41b052f31b940159ca6c2e24d3f1ffe07db57e","user":{"login":"SimonKrughoff","id":945715,"avatar_url":"https://avatars.githubusercontent.com/u/945715?v=3","gravatar_id":"","url":"https://api.github.com/users/SimonKrughoff","html_url":"https://github.com/SimonKrughoff","followers_url":"https://api.github.com/users/SimonKrughoff/followers","following_url":"https://api.github.com/users/SimonKrughoff/following{/other_user}","gists_url":"https://api.github.com/users/SimonKrughoff/gists{/gist_id}","starred_url":"https://api.github.com/users/SimonKrughoff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SimonKrughoff/subscriptions","organizations_url":"https://api.github.com/users/SimonKrughoff/orgs","repos_url":"https://api.github.com/users/SimonKrughoff/repos","events_url":"https://api.github.com/users/SimonKrughoff/events{/privacy}","received_events_url":"https://api.github.com/users/SimonKrughoff/received_events","type":"User","site_admin":false},"body":"This suggests that running with different arguments will result in different fields being filled in (or even different schema).  Is it possible to have two different tasks, so we can simply delete one run call when we decide to remove the old way of doing things?","created_at":"2016-05-16T06:48:43Z","updated_at":"2016-05-16T06:48:43Z","html_url":"https://github.com/lsst/pipe_tasks/pull/50#discussion_r63315469","pull_request_url":"https://api.github.com/repos/lsst/pipe_tasks/pulls/50","_links":{"self":{"href":"https://api.github.com/repos/lsst/pipe_tasks/pulls/comments/63315469"},"html":{"href":"https://github.com/lsst/pipe_tasks/pull/50#discussion_r63315469"},"pull_request":{"href":"https://api.github.com/repos/lsst/pipe_tasks/pulls/50"}}},"pull_request":{"url":"https://api.github.com/repos/lsst/pipe_tasks/pulls/50","id":70156395,"html_url":"https://github.com/lsst/pipe_tasks/pull/50","diff_url":"https://github.com/lsst/pipe_tasks/pull/50.diff","patch_url":"https://github.com/lsst/pipe_tasks/pull/50.patch","issue_url":"https://api.github.com/repos/lsst/pipe_tasks/issues/50","number":50,"state":"open","locked":false,"title":"add DipoleFitTask as default dipole measurement task","user":{"login":"SimonKrughoff","id":945715,"avatar_url":"https://avatars.githubusercontent.com/u/945715?v=3","gravatar_id":"","url":"https://api.github.com/users/SimonKrughoff","html_url":"https://github.com/SimonKrughoff","followers_url":"https://api.github.com/users/SimonKrughoff/followers","following_url":"https://api.github.com/users/SimonKrughoff/following{/other_user}","gists_url":"https://api.github.com/users/SimonKrughoff/gists{/gist_id}","starred_url":"https://api.github.com/users/SimonKrughoff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SimonKrughoff/subscriptions","organizations_url":"https://api.github.com/users/SimonKrughoff/orgs","repos_url":"https://api.github.com/users/SimonKrughoff/repos","events_url":"https://api.github.com/users/SimonKrughoff/events{/privacy}","received_events_url":"https://api.github.com/users/SimonKrughoff/received_events","type":"User","site_admin":false},"body":"Added config parameter doMeasurementNew (default=True) which if\r\nset to False will fall back on *only* running the previous\r\nDipoleMeasurementTask measurements. If True, it will run\r\nboth.","created_at":"2016-05-16T06:44:20Z","updated_at":"2016-05-16T06:48:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7ac593ac27e323bcbabb8e11e3f47ad15ab67832","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/lsst/pipe_tasks/pulls/50/commits","review_comments_url":"https://api.github.com/repos/lsst/pipe_tasks/pulls/50/comments","review_comment_url":"https://api.github.com/repos/lsst/pipe_tasks/pulls/comments{/number}","comments_url":"https://api.github.com/repos/lsst/pipe_tasks/issues/50/comments","statuses_url":"https://api.github.com/repos/lsst/pipe_tasks/statuses/cc41b052f31b940159ca6c2e24d3f1ffe07db57e","head":{"label":"lsst:tickets/DM-5413","ref":"tickets/DM-5413","sha":"cc41b052f31b940159ca6c2e24d3f1ffe07db57e","user":{"login":"lsst","id":1134504,"avatar_url":"https://avatars.githubusercontent.com/u/1134504?v=3","gravatar_id":"","url":"https://api.github.com/users/lsst","html_url":"https://github.com/lsst","followers_url":"https://api.github.com/users/lsst/followers","following_url":"https://api.github.com/users/lsst/following{/other_user}","gists_url":"https://api.github.com/users/lsst/gists{/gist_id}","starred_url":"https://api.github.com/users/lsst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lsst/subscriptions","organizations_url":"https://api.github.com/users/lsst/orgs","repos_url":"https://api.github.com/users/lsst/repos","events_url":"https://api.github.com/users/lsst/events{/privacy}","received_events_url":"https://api.github.com/users/lsst/received_events","type":"Organization","site_admin":false},"repo":{"id":23013457,"name":"pipe_tasks","full_name":"lsst/pipe_tasks","owner":{"login":"lsst","id":1134504,"avatar_url":"https://avatars.githubusercontent.com/u/1134504?v=3","gravatar_id":"","url":"https://api.github.com/users/lsst","html_url":"https://github.com/lsst","followers_url":"https://api.github.com/users/lsst/followers","following_url":"https://api.github.com/users/lsst/following{/other_user}","gists_url":"https://api.github.com/users/lsst/gists{/gist_id}","starred_url":"https://api.github.com/users/lsst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lsst/subscriptions","organizations_url":"https://api.github.com/users/lsst/orgs","repos_url":"https://api.github.com/users/lsst/repos","events_url":"https://api.github.com/users/lsst/events{/privacy}","received_events_url":"https://api.github.com/users/lsst/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/lsst/pipe_tasks","description":"LSST Data Management: astronomical data processing tasks","fork":false,"url":"https://api.github.com/repos/lsst/pipe_tasks","forks_url":"https://api.github.com/repos/lsst/pipe_tasks/forks","keys_url":"https://api.github.com/repos/lsst/pipe_tasks/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lsst/pipe_tasks/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lsst/pipe_tasks/teams","hooks_url":"https://api.github.com/repos/lsst/pipe_tasks/hooks","issue_events_url":"https://api.github.com/repos/lsst/pipe_tasks/issues/events{/number}","events_url":"https://api.github.com/repos/lsst/pipe_tasks/events","assignees_url":"https://api.github.com/repos/lsst/pipe_tasks/assignees{/user}","branches_url":"https://api.github.com/repos/lsst/pipe_tasks/branches{/branch}","tags_url":"https://api.github.com/repos/lsst/pipe_tasks/tags","blobs_url":"https://api.github.com/repos/lsst/pipe_tasks/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lsst/pipe_tasks/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lsst/pipe_tasks/git/refs{/sha}","trees_url":"https://api.github.com/repos/lsst/pipe_tasks/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lsst/pipe_tasks/statuses/{sha}","languages_url":"https://api.github.com/repos/lsst/pipe_tasks/languages","stargazers_url":"https://api.github.com/repos/lsst/pipe_tasks/stargazers","contributors_url":"https://api.github.com/repos/lsst/pipe_tasks/contributors","subscribers_url":"https://api.github.com/repos/lsst/pipe_tasks/subscribers","subscription_url":"https://api.github.com/repos/lsst/pipe_tasks/subscription","commits_url":"https://api.github.com/repos/lsst/pipe_tasks/commits{/sha}","git_commits_url":"https://api.github.com/repos/lsst/pipe_tasks/git/commits{/sha}","comments_url":"https://api.github.com/repos/lsst/pipe_tasks/comments{/number}","issue_comment_url":"https://api.github.com/repos/lsst/pipe_tasks/issues/comments{/number}","contents_url":"https://api.github.com/repos/lsst/pipe_tasks/contents/{+path}","compare_url":"https://api.github.com/repos/lsst/pipe_tasks/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lsst/pipe_tasks/merges","archive_url":"https://api.github.com/repos/lsst/pipe_tasks/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lsst/pipe_tasks/downloads","issues_url":"https://api.github.com/repos/lsst/pipe_tasks/issues{/number}","pulls_url":"https://api.github.com/repos/lsst/pipe_tasks/pulls{/number}","milestones_url":"https://api.github.com/repos/lsst/pipe_tasks/milestones{/number}","notifications_url":"https://api.github.com/repos/lsst/pipe_tasks/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lsst/pipe_tasks/labels{/name}","releases_url":"https://api.github.com/repos/lsst/pipe_tasks/releases{/id}","deployments_url":"https://api.github.com/repos/lsst/pipe_tasks/deployments","created_at":"2014-08-16T07:50:15Z","updated_at":"2016-01-11T18:54:32Z","pushed_at":"2016-05-16T06:44:21Z","git_url":"git://github.com/lsst/pipe_tasks.git","ssh_url":"git@github.com:lsst/pipe_tasks.git","clone_url":"https://github.com/lsst/pipe_tasks.git","svn_url":"https://github.com/lsst/pipe_tasks","homepage":"http://dm.lsst.org/","size":11880,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":8,"forks":4,"open_issues":8,"watchers":0,"default_branch":"master"}},"base":{"label":"lsst:master","ref":"master","sha":"c5c3d6f778a33474b6ba8e34a9e41c6c5005a840","user":{"login":"lsst","id":1134504,"avatar_url":"https://avatars.githubusercontent.com/u/1134504?v=3","gravatar_id":"","url":"https://api.github.com/users/lsst","html_url":"https://github.com/lsst","followers_url":"https://api.github.com/users/lsst/followers","following_url":"https://api.github.com/users/lsst/following{/other_user}","gists_url":"https://api.github.com/users/lsst/gists{/gist_id}","starred_url":"https://api.github.com/users/lsst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lsst/subscriptions","organizations_url":"https://api.github.com/users/lsst/orgs","repos_url":"https://api.github.com/users/lsst/repos","events_url":"https://api.github.com/users/lsst/events{/privacy}","received_events_url":"https://api.github.com/users/lsst/received_events","type":"Organization","site_admin":false},"repo":{"id":23013457,"name":"pipe_tasks","full_name":"lsst/pipe_tasks","owner":{"login":"lsst","id":1134504,"avatar_url":"https://avatars.githubusercontent.com/u/1134504?v=3","gravatar_id":"","url":"https://api.github.com/users/lsst","html_url":"https://github.com/lsst","followers_url":"https://api.github.com/users/lsst/followers","following_url":"https://api.github.com/users/lsst/following{/other_user}","gists_url":"https://api.github.com/users/lsst/gists{/gist_id}","starred_url":"https://api.github.com/users/lsst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lsst/subscriptions","organizations_url":"https://api.github.com/users/lsst/orgs","repos_url":"https://api.github.com/users/lsst/repos","events_url":"https://api.github.com/users/lsst/events{/privacy}","received_events_url":"https://api.github.com/users/lsst/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/lsst/pipe_tasks","description":"LSST Data Management: astronomical data processing tasks","fork":false,"url":"https://api.github.com/repos/lsst/pipe_tasks","forks_url":"https://api.github.com/repos/lsst/pipe_tasks/forks","keys_url":"https://api.github.com/repos/lsst/pipe_tasks/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lsst/pipe_tasks/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lsst/pipe_tasks/teams","hooks_url":"https://api.github.com/repos/lsst/pipe_tasks/hooks","issue_events_url":"https://api.github.com/repos/lsst/pipe_tasks/issues/events{/number}","events_url":"https://api.github.com/repos/lsst/pipe_tasks/events","assignees_url":"https://api.github.com/repos/lsst/pipe_tasks/assignees{/user}","branches_url":"https://api.github.com/repos/lsst/pipe_tasks/branches{/branch}","tags_url":"https://api.github.com/repos/lsst/pipe_tasks/tags","blobs_url":"https://api.github.com/repos/lsst/pipe_tasks/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lsst/pipe_tasks/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lsst/pipe_tasks/git/refs{/sha}","trees_url":"https://api.github.com/repos/lsst/pipe_tasks/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lsst/pipe_tasks/statuses/{sha}","languages_url":"https://api.github.com/repos/lsst/pipe_tasks/languages","stargazers_url":"https://api.github.com/repos/lsst/pipe_tasks/stargazers","contributors_url":"https://api.github.com/repos/lsst/pipe_tasks/contributors","subscribers_url":"https://api.github.com/repos/lsst/pipe_tasks/subscribers","subscription_url":"https://api.github.com/repos/lsst/pipe_tasks/subscription","commits_url":"https://api.github.com/repos/lsst/pipe_tasks/commits{/sha}","git_commits_url":"https://api.github.com/repos/lsst/pipe_tasks/git/commits{/sha}","comments_url":"https://api.github.com/repos/lsst/pipe_tasks/comments{/number}","issue_comment_url":"https://api.github.com/repos/lsst/pipe_tasks/issues/comments{/number}","contents_url":"https://api.github.com/repos/lsst/pipe_tasks/contents/{+path}","compare_url":"https://api.github.com/repos/lsst/pipe_tasks/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lsst/pipe_tasks/merges","archive_url":"https://api.github.com/repos/lsst/pipe_tasks/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lsst/pipe_tasks/downloads","issues_url":"https://api.github.com/repos/lsst/pipe_tasks/issues{/number}","pulls_url":"https://api.github.com/repos/lsst/pipe_tasks/pulls{/number}","milestones_url":"https://api.github.com/repos/lsst/pipe_tasks/milestones{/number}","notifications_url":"https://api.github.com/repos/lsst/pipe_tasks/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lsst/pipe_tasks/labels{/name}","releases_url":"https://api.github.com/repos/lsst/pipe_tasks/releases{/id}","deployments_url":"https://api.github.com/repos/lsst/pipe_tasks/deployments","created_at":"2014-08-16T07:50:15Z","updated_at":"2016-01-11T18:54:32Z","pushed_at":"2016-05-16T06:44:21Z","git_url":"git://github.com/lsst/pipe_tasks.git","ssh_url":"git@github.com:lsst/pipe_tasks.git","clone_url":"https://github.com/lsst/pipe_tasks.git","svn_url":"https://github.com/lsst/pipe_tasks","homepage":"http://dm.lsst.org/","size":11880,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":8,"forks":4,"open_issues":8,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/lsst/pipe_tasks/pulls/50"},"html":{"href":"https://github.com/lsst/pipe_tasks/pull/50"},"issue":{"href":"https://api.github.com/repos/lsst/pipe_tasks/issues/50"},"comments":{"href":"https://api.github.com/repos/lsst/pipe_tasks/issues/50/comments"},"review_comments":{"href":"https://api.github.com/repos/lsst/pipe_tasks/pulls/50/comments"},"review_comment":{"href":"https://api.github.com/repos/lsst/pipe_tasks/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/lsst/pipe_tasks/pulls/50/commits"},"statuses":{"href":"https://api.github.com/repos/lsst/pipe_tasks/statuses/cc41b052f31b940159ca6c2e24d3f1ffe07db57e"}}}}