{"action":"created","comment":{"url":"https://api.github.com/repos/lsst/validate_drp/pulls/comments/52215211","id":52215211,"diff_hunk":"@@ -0,0 +1,276 @@\n+#!/usr/bin/env python\n+\n+# LSST Data Management System\n+# Copyright 2008-2016 AURA/LSST.\n+#\n+# This product includes software developed by the\n+# LSST Project (http://www.lsst.org/).\n+#\n+# This program is free software: you can redistribute it and/or modify\n+# it under the terms of the GNU General Public License as published by\n+# the Free Software Foundation, either version 3 of the License, or\n+# (at your option) any later version.\n+#\n+# This program is distributed in the hope that it will be useful,\n+# but WITHOUT ANY WARRANTY; without even the implied warranty of\n+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n+# GNU General Public License for more details.\n+#\n+# You should have received a copy of the LSST License Statement and\n+# the GNU General Public License along with this program.  If not,\n+# see <https://www.lsstcorp.org/LegalNotices/>.\n+\n+from __future__ import print_function, division\n+\n+import math\n+\n+import numpy as np\n+import scipy.stats\n+\n+import lsst.pipe.base as pipeBase\n+\n+def calcPA1(groupView, magKey):\n+    \"\"\"Calculate the photometric repeatability of measurements across a set of observations.","path":"python/lsst/validate/drp/calcSrd.py","position":33,"original_position":33,"commit_id":"d1f96e6a62c6f9b08b64230088c0c05c57f11c1c","original_commit_id":"d1f96e6a62c6f9b08b64230088c0c05c57f11c1c","user":{"login":"jdswinbank","id":460854,"avatar_url":"https://avatars.githubusercontent.com/u/460854?v=3","gravatar_id":"","url":"https://api.github.com/users/jdswinbank","html_url":"https://github.com/jdswinbank","followers_url":"https://api.github.com/users/jdswinbank/followers","following_url":"https://api.github.com/users/jdswinbank/following{/other_user}","gists_url":"https://api.github.com/users/jdswinbank/gists{/gist_id}","starred_url":"https://api.github.com/users/jdswinbank/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdswinbank/subscriptions","organizations_url":"https://api.github.com/users/jdswinbank/orgs","repos_url":"https://api.github.com/users/jdswinbank/repos","events_url":"https://api.github.com/users/jdswinbank/events{/privacy}","received_events_url":"https://api.github.com/users/jdswinbank/received_events","type":"User","site_admin":false},"body":"This docstring doesn't follow the standards as outlined at https://confluence.lsstcorp.org/display/LDMDG/Documentation+Standards#DocumentationStandards-FormattingoftheDocstringText. (Of course, I understand that those standards are up for debate and may be changed or replaced in the future.)\r\n\r\n...that aside, it is a model of clarity & usefulness. Thanks!","created_at":"2016-02-08T19:48:12Z","updated_at":"2016-02-08T19:48:12Z","html_url":"https://github.com/lsst/validate_drp/pull/3#discussion_r52215211","pull_request_url":"https://api.github.com/repos/lsst/validate_drp/pulls/3","_links":{"self":{"href":"https://api.github.com/repos/lsst/validate_drp/pulls/comments/52215211"},"html":{"href":"https://github.com/lsst/validate_drp/pull/3#discussion_r52215211"},"pull_request":{"href":"https://api.github.com/repos/lsst/validate_drp/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/lsst/validate_drp/pulls/3","id":57698179,"html_url":"https://github.com/lsst/validate_drp/pull/3","diff_url":"https://github.com/lsst/validate_drp/pull/3.diff","patch_url":"https://github.com/lsst/validate_drp/pull/3.patch","issue_url":"https://api.github.com/repos/lsst/validate_drp/issues/3","number":3,"state":"open","locked":false,"title":"DM-4848: Measure photometric repeatability and correctness of reported errors","user":{"login":"wmwv","id":3201257,"avatar_url":"https://avatars.githubusercontent.com/u/3201257?v=3","gravatar_id":"","url":"https://api.github.com/users/wmwv","html_url":"https://github.com/wmwv","followers_url":"https://api.github.com/users/wmwv/followers","following_url":"https://api.github.com/users/wmwv/following{/other_user}","gists_url":"https://api.github.com/users/wmwv/gists{/gist_id}","starred_url":"https://api.github.com/users/wmwv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wmwv/subscriptions","organizations_url":"https://api.github.com/users/wmwv/orgs","repos_url":"https://api.github.com/users/wmwv/repos","events_url":"https://api.github.com/users/wmwv/events{/privacy}","received_events_url":"https://api.github.com/users/wmwv/received_events","type":"User","site_admin":false},"body":"Adds plots and calculation on photometric repeatability.  Calculate simple RMS and more formal SRD-motivated quantities.  Output to STDOUT and PNG plots in working directory.","created_at":"2016-01-29T20:26:07Z","updated_at":"2016-02-08T19:48:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":"786baac8e6bb603ed7df219c7d3551d383f24973","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/lsst/validate_drp/pulls/3/commits","review_comments_url":"https://api.github.com/repos/lsst/validate_drp/pulls/3/comments","review_comment_url":"https://api.github.com/repos/lsst/validate_drp/pulls/comments{/number}","comments_url":"https://api.github.com/repos/lsst/validate_drp/issues/3/comments","statuses_url":"https://api.github.com/repos/lsst/validate_drp/statuses/d1f96e6a62c6f9b08b64230088c0c05c57f11c1c","head":{"label":"lsst:tickets/DM-4848","ref":"tickets/DM-4848","sha":"d1f96e6a62c6f9b08b64230088c0c05c57f11c1c","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":49601522,"name":"validate_drp","full_name":"lsst/validate_drp","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/validate_drp","description":"","fork":false,"url":"https://api.github.com/repos/lsst/validate_drp","forks_url":"https://api.github.com/repos/lsst/validate_drp/forks","keys_url":"https://api.github.com/repos/lsst/validate_drp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lsst/validate_drp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lsst/validate_drp/teams","hooks_url":"https://api.github.com/repos/lsst/validate_drp/hooks","issue_events_url":"https://api.github.com/repos/lsst/validate_drp/issues/events{/number}","events_url":"https://api.github.com/repos/lsst/validate_drp/events","assignees_url":"https://api.github.com/repos/lsst/validate_drp/assignees{/user}","branches_url":"https://api.github.com/repos/lsst/validate_drp/branches{/branch}","tags_url":"https://api.github.com/repos/lsst/validate_drp/tags","blobs_url":"https://api.github.com/repos/lsst/validate_drp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lsst/validate_drp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lsst/validate_drp/git/refs{/sha}","trees_url":"https://api.github.com/repos/lsst/validate_drp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lsst/validate_drp/statuses/{sha}","languages_url":"https://api.github.com/repos/lsst/validate_drp/languages","stargazers_url":"https://api.github.com/repos/lsst/validate_drp/stargazers","contributors_url":"https://api.github.com/repos/lsst/validate_drp/contributors","subscribers_url":"https://api.github.com/repos/lsst/validate_drp/subscribers","subscription_url":"https://api.github.com/repos/lsst/validate_drp/subscription","commits_url":"https://api.github.com/repos/lsst/validate_drp/commits{/sha}","git_commits_url":"https://api.github.com/repos/lsst/validate_drp/git/commits{/sha}","comments_url":"https://api.github.com/repos/lsst/validate_drp/comments{/number}","issue_comment_url":"https://api.github.com/repos/lsst/validate_drp/issues/comments{/number}","contents_url":"https://api.github.com/repos/lsst/validate_drp/contents/{+path}","compare_url":"https://api.github.com/repos/lsst/validate_drp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lsst/validate_drp/merges","archive_url":"https://api.github.com/repos/lsst/validate_drp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lsst/validate_drp/downloads","issues_url":"https://api.github.com/repos/lsst/validate_drp/issues{/number}","pulls_url":"https://api.github.com/repos/lsst/validate_drp/pulls{/number}","milestones_url":"https://api.github.com/repos/lsst/validate_drp/milestones{/number}","notifications_url":"https://api.github.com/repos/lsst/validate_drp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lsst/validate_drp/labels{/name}","releases_url":"https://api.github.com/repos/lsst/validate_drp/releases{/id}","deployments_url":"https://api.github.com/repos/lsst/validate_drp/deployments","created_at":"2016-01-13T21:01:10Z","updated_at":"2016-01-15T19:33:12Z","pushed_at":"2016-02-08T18:30:55Z","git_url":"git://github.com/lsst/validate_drp.git","ssh_url":"git@github.com:lsst/validate_drp.git","clone_url":"https://github.com/lsst/validate_drp.git","svn_url":"https://github.com/lsst/validate_drp","homepage":null,"size":179,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"lsst:master","ref":"master","sha":"6a47ca481be0a7b59b83ef037b5069190cd718d4","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":49601522,"name":"validate_drp","full_name":"lsst/validate_drp","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/validate_drp","description":"","fork":false,"url":"https://api.github.com/repos/lsst/validate_drp","forks_url":"https://api.github.com/repos/lsst/validate_drp/forks","keys_url":"https://api.github.com/repos/lsst/validate_drp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lsst/validate_drp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lsst/validate_drp/teams","hooks_url":"https://api.github.com/repos/lsst/validate_drp/hooks","issue_events_url":"https://api.github.com/repos/lsst/validate_drp/issues/events{/number}","events_url":"https://api.github.com/repos/lsst/validate_drp/events","assignees_url":"https://api.github.com/repos/lsst/validate_drp/assignees{/user}","branches_url":"https://api.github.com/repos/lsst/validate_drp/branches{/branch}","tags_url":"https://api.github.com/repos/lsst/validate_drp/tags","blobs_url":"https://api.github.com/repos/lsst/validate_drp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lsst/validate_drp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lsst/validate_drp/git/refs{/sha}","trees_url":"https://api.github.com/repos/lsst/validate_drp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lsst/validate_drp/statuses/{sha}","languages_url":"https://api.github.com/repos/lsst/validate_drp/languages","stargazers_url":"https://api.github.com/repos/lsst/validate_drp/stargazers","contributors_url":"https://api.github.com/repos/lsst/validate_drp/contributors","subscribers_url":"https://api.github.com/repos/lsst/validate_drp/subscribers","subscription_url":"https://api.github.com/repos/lsst/validate_drp/subscription","commits_url":"https://api.github.com/repos/lsst/validate_drp/commits{/sha}","git_commits_url":"https://api.github.com/repos/lsst/validate_drp/git/commits{/sha}","comments_url":"https://api.github.com/repos/lsst/validate_drp/comments{/number}","issue_comment_url":"https://api.github.com/repos/lsst/validate_drp/issues/comments{/number}","contents_url":"https://api.github.com/repos/lsst/validate_drp/contents/{+path}","compare_url":"https://api.github.com/repos/lsst/validate_drp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lsst/validate_drp/merges","archive_url":"https://api.github.com/repos/lsst/validate_drp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lsst/validate_drp/downloads","issues_url":"https://api.github.com/repos/lsst/validate_drp/issues{/number}","pulls_url":"https://api.github.com/repos/lsst/validate_drp/pulls{/number}","milestones_url":"https://api.github.com/repos/lsst/validate_drp/milestones{/number}","notifications_url":"https://api.github.com/repos/lsst/validate_drp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lsst/validate_drp/labels{/name}","releases_url":"https://api.github.com/repos/lsst/validate_drp/releases{/id}","deployments_url":"https://api.github.com/repos/lsst/validate_drp/deployments","created_at":"2016-01-13T21:01:10Z","updated_at":"2016-01-15T19:33:12Z","pushed_at":"2016-02-08T18:30:55Z","git_url":"git://github.com/lsst/validate_drp.git","ssh_url":"git@github.com:lsst/validate_drp.git","clone_url":"https://github.com/lsst/validate_drp.git","svn_url":"https://github.com/lsst/validate_drp","homepage":null,"size":179,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/lsst/validate_drp/pulls/3"},"html":{"href":"https://github.com/lsst/validate_drp/pull/3"},"issue":{"href":"https://api.github.com/repos/lsst/validate_drp/issues/3"},"comments":{"href":"https://api.github.com/repos/lsst/validate_drp/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/lsst/validate_drp/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/lsst/validate_drp/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/lsst/validate_drp/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/lsst/validate_drp/statuses/d1f96e6a62c6f9b08b64230088c0c05c57f11c1c"}}}}