{"action":"created","comment":{"url":"https://api.github.com/repos/lsst-dm/galaxy_shear_experiments/pulls/comments/33248644","id":33248644,"diff_hunk":"@@ -0,0 +1,175 @@\n+#!/usr/bin/env python\n+#\n+# LSST Data Management System\n+# Copyright 2015 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 <http://www.lsstcorp.org/LegalNotices/>.\n+#\n+import pyfits\n+import argparse\n+import sys\n+import os.path\n+import numpy\n+import lsst.daf.persistence as dafPersist\n+import lsst.afw.cameraGeom as cameraGeom\n+import lsst.afw.coord as afwCoord\n+import lsst.afw.detection as afwDetection\n+import lsst.afw.geom as afwGeom\n+import lsst.afw.image as afwImage\n+import lsst.afw.math as afwMath\n+import lsst.afw.table as afwTable\n+import lsst.meas.base as measBase\n+import lsst.meas.algorithms as measAlg\n+\n+psfSize = 33","path":"bin/makePsfLibrary.py","position":39,"original_position":39,"commit_id":"c3ab1b77be3da538d6e410010d5f955619f7c3df","original_commit_id":"c3ab1b77be3da538d6e410010d5f955619f7c3df","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":"What is ``psfSize``? We can reasonably conclude it's the size of a PSF, but a comment providing units, justification for choosing this number, etc would help.\r\n\r\nAs a module-level constant, this should probably be called ``PSF_SIZE``.","created_at":"2015-06-25T12:26:48Z","updated_at":"2015-06-25T12:26:48Z","html_url":"https://github.com/lsst-dm/galaxy_shear_experiments/pull/2#discussion_r33248644","pull_request_url":"https://api.github.com/repos/lsst-dm/galaxy_shear_experiments/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/lsst-dm/galaxy_shear_experiments/pulls/comments/33248644"},"html":{"href":"https://github.com/lsst-dm/galaxy_shear_experiments/pull/2#discussion_r33248644"},"pull_request":{"href":"https://api.github.com/repos/lsst-dm/galaxy_shear_experiments/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/lsst-dm/galaxy_shear_experiments/pulls/2","id":38540018,"html_url":"https://github.com/lsst-dm/galaxy_shear_experiments/pull/2","diff_url":"https://github.com/lsst-dm/galaxy_shear_experiments/pull/2.diff","patch_url":"https://github.com/lsst-dm/galaxy_shear_experiments/pull/2.patch","issue_url":"https://api.github.com/repos/lsst-dm/galaxy_shear_experiments/issues/2","number":2,"state":"open","locked":false,"title":"Review of DM-2569 (Produce an indexed library of multi-extension fits file for PhoSim im…)","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":"","created_at":"2015-06-25T12:05:55Z","updated_at":"2015-06-25T12:26:48Z","closed_at":null,"merged_at":null,"merge_commit_sha":"cf418aaced40a2a70e32c508ae4cb74c0982746b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/lsst-dm/galaxy_shear_experiments/pulls/2/commits","review_comments_url":"https://api.github.com/repos/lsst-dm/galaxy_shear_experiments/pulls/2/comments","review_comment_url":"https://api.github.com/repos/lsst-dm/galaxy_shear_experiments/pulls/comments{/number}","comments_url":"https://api.github.com/repos/lsst-dm/galaxy_shear_experiments/issues/2/comments","statuses_url":"https://api.github.com/repos/lsst-dm/galaxy_shear_experiments/statuses/c3ab1b77be3da538d6e410010d5f955619f7c3df","head":{"label":"lsst-dm:u/pgee/DM-2659","ref":"u/pgee/DM-2659","sha":"c3ab1b77be3da538d6e410010d5f955619f7c3df","user":{"login":"lsst-dm","id":10968870,"avatar_url":"https://avatars.githubusercontent.com/u/10968870?v=3","gravatar_id":"","url":"https://api.github.com/users/lsst-dm","html_url":"https://github.com/lsst-dm","followers_url":"https://api.github.com/users/lsst-dm/followers","following_url":"https://api.github.com/users/lsst-dm/following{/other_user}","gists_url":"https://api.github.com/users/lsst-dm/gists{/gist_id}","starred_url":"https://api.github.com/users/lsst-dm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lsst-dm/subscriptions","organizations_url":"https://api.github.com/users/lsst-dm/orgs","repos_url":"https://api.github.com/users/lsst-dm/repos","events_url":"https://api.github.com/users/lsst-dm/events{/privacy}","received_events_url":"https://api.github.com/users/lsst-dm/received_events","type":"Organization","site_admin":false},"repo":{"id":33372905,"name":"galaxy_shear_experiments","full_name":"lsst-dm/galaxy_shear_experiments","owner":{"login":"lsst-dm","id":10968870,"avatar_url":"https://avatars.githubusercontent.com/u/10968870?v=3","gravatar_id":"","url":"https://api.github.com/users/lsst-dm","html_url":"https://github.com/lsst-dm","followers_url":"https://api.github.com/users/lsst-dm/followers","following_url":"https://api.github.com/users/lsst-dm/following{/other_user}","gists_url":"https://api.github.com/users/lsst-dm/gists{/gist_id}","starred_url":"https://api.github.com/users/lsst-dm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lsst-dm/subscriptions","organizations_url":"https://api.github.com/users/lsst-dm/orgs","repos_url":"https://api.github.com/users/lsst-dm/repos","events_url":"https://api.github.com/users/lsst-dm/events{/privacy}","received_events_url":"https://api.github.com/users/lsst-dm/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/lsst-dm/galaxy_shear_experiments","description":"","fork":false,"url":"https://api.github.com/repos/lsst-dm/galaxy_shear_experiments","forks_url":"https://api.github.com/repos/lsst-dm/galaxy_shear_experiments/forks","keys_url":"https://api.github.com/repos/lsst-dm/galaxy_shear_experiments/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lsst-dm/galaxy_shear_experiments/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lsst-dm/galaxy_shear_experiments/teams","hooks_url":"https://api.github.com/repos/lsst-dm/galaxy_shear_experiments/hooks","issue_events_url":"https://api.github.com/repos/lsst-dm/galaxy_shear_experiments/issues/events{/number}","events_url":"https://api.github.com/repos/lsst-dm/galaxy_shear_experiments/events","assignees_url":"https://api.github.com/repos/lsst-dm/galaxy_shear_experiments/assignees{/user}","branches_url":"https://api.github.com/repos/lsst-dm/galaxy_shear_experiments/branches{/branch}","tags_url":"https://api.github.com/repos/lsst-dm/galaxy_shear_experiments/tags","blobs_url":"https://api.github.com/repos/lsst-dm/galaxy_shear_experiments/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lsst-dm/galaxy_shear_experiments/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lsst-dm/galaxy_shear_experiments/git/refs{/sha}","trees_url":"https://api.github.com/repos/lsst-dm/galaxy_shear_experiments/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lsst-dm/galaxy_shear_experiments/statuses/{sha}","languages_url":"https://api.github.com/repos/lsst-dm/galaxy_shear_experiments/languages","stargazers_url":"https://api.github.com/repos/lsst-dm/galaxy_shear_experiments/stargazers","contributors_url":"https://api.github.com/repos/lsst-dm/galaxy_shear_experiments/contributors","subscribers_url":"https://api.github.com/repos/lsst-dm/galaxy_shear_experiments/subscribers","subscription_url":"https://api.github.com/repos/lsst-dm/galaxy_shear_experiments/subscription","commits_url":"https://api.github.com/repos/lsst-dm/galaxy_shear_experiments/commits{/sha}","git_commits_url":"https://api.github.com/repos/lsst-dm/galaxy_shear_experiments/git/commits{/sha}","comments_url":"https://api.github.com/repos/lsst-dm/galaxy_shear_experiments/comments{/number}","issue_comment_url":"https://api.github.com/repos/lsst-dm/galaxy_shear_experiments/issues/comments{/number}","contents_url":"https://api.github.com/repos/lsst-dm/galaxy_shear_experiments/contents/{+path}","compare_url":"https://api.github.com/repos/lsst-dm/galaxy_shear_experiments/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lsst-dm/galaxy_shear_experiments/merges","archive_url":"https://api.github.com/repos/lsst-dm/galaxy_shear_experiments/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lsst-dm/galaxy_shear_experiments/downloads","issues_url":"https://api.github.com/repos/lsst-dm/galaxy_shear_experiments/issues{/number}","pulls_url":"https://api.github.com/repos/lsst-dm/galaxy_shear_experiments/pulls{/number}","milestones_url":"https://api.github.com/repos/lsst-dm/galaxy_shear_experiments/milestones{/number}","notifications_url":"https://api.github.com/repos/lsst-dm/galaxy_shear_experiments/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lsst-dm/galaxy_shear_experiments/labels{/name}","releases_url":"https://api.github.com/repos/lsst-dm/galaxy_shear_experiments/releases{/id}","created_at":"2015-04-03T16:53:11Z","updated_at":"2015-05-30T04:11:38Z","pushed_at":"2015-06-25T12:05:55Z","git_url":"git://github.com/lsst-dm/galaxy_shear_experiments.git","ssh_url":"git@github.com:lsst-dm/galaxy_shear_experiments.git","clone_url":"https://github.com/lsst-dm/galaxy_shear_experiments.git","svn_url":"https://github.com/lsst-dm/galaxy_shear_experiments","homepage":null,"size":2208,"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":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"lsst-dm:master","ref":"master","sha":"f8530711e846fc075c8e0f71c088b71ccc17b8ec","user":{"login":"lsst-dm","id":10968870,"avatar_url":"https://avatars.githubusercontent.com/u/10968870?v=3","gravatar_id":"","url":"https://api.github.com/users/lsst-dm","html_url":"https://github.com/lsst-dm","followers_url":"https://api.github.com/users/lsst-dm/followers","following_url":"https://api.github.com/users/lsst-dm/following{/other_user}","gists_url":"https://api.github.com/users/lsst-dm/gists{/gist_id}","starred_url":"https://api.github.com/users/lsst-dm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lsst-dm/subscriptions","organizations_url":"https://api.github.com/users/lsst-dm/orgs","repos_url":"https://api.github.com/users/lsst-dm/repos","events_url":"https://api.github.com/users/lsst-dm/events{/privacy}","received_events_url":"https://api.github.com/users/lsst-dm/received_events","type":"Organization","site_admin":false},"repo":{"id":33372905,"name":"galaxy_shear_experiments","full_name":"lsst-dm/galaxy_shear_experiments","owner":{"login":"lsst-dm","id":10968870,"avatar_url":"https://avatars.githubusercontent.com/u/10968870?v=3","gravatar_id":"","url":"https://api.github.com/users/lsst-dm","html_url":"https://github.com/lsst-dm","followers_url":"https://api.github.com/users/lsst-dm/followers","following_url":"https://api.github.com/users/lsst-dm/following{/other_user}","gists_url":"https://api.github.com/users/lsst-dm/gists{/gist_id}","starred_url":"https://api.github.com/users/lsst-dm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lsst-dm/subscriptions","organizations_url":"https://api.github.com/users/lsst-dm/orgs","repos_url":"https://api.github.com/users/lsst-dm/repos","events_url":"https://api.github.com/users/lsst-dm/events{/privacy}","received_events_url":"https://api.github.com/users/lsst-dm/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/lsst-dm/galaxy_shear_experiments","description":"","fork":false,"url":"https://api.github.com/repos/lsst-dm/galaxy_shear_experiments","forks_url":"https://api.github.com/repos/lsst-dm/galaxy_shear_experiments/forks","keys_url":"https://api.github.com/repos/lsst-dm/galaxy_shear_experiments/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lsst-dm/galaxy_shear_experiments/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lsst-dm/galaxy_shear_experiments/teams","hooks_url":"https://api.github.com/repos/lsst-dm/galaxy_shear_experiments/hooks","issue_events_url":"https://api.github.com/repos/lsst-dm/galaxy_shear_experiments/issues/events{/number}","events_url":"https://api.github.com/repos/lsst-dm/galaxy_shear_experiments/events","assignees_url":"https://api.github.com/repos/lsst-dm/galaxy_shear_experiments/assignees{/user}","branches_url":"https://api.github.com/repos/lsst-dm/galaxy_shear_experiments/branches{/branch}","tags_url":"https://api.github.com/repos/lsst-dm/galaxy_shear_experiments/tags","blobs_url":"https://api.github.com/repos/lsst-dm/galaxy_shear_experiments/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lsst-dm/galaxy_shear_experiments/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lsst-dm/galaxy_shear_experiments/git/refs{/sha}","trees_url":"https://api.github.com/repos/lsst-dm/galaxy_shear_experiments/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lsst-dm/galaxy_shear_experiments/statuses/{sha}","languages_url":"https://api.github.com/repos/lsst-dm/galaxy_shear_experiments/languages","stargazers_url":"https://api.github.com/repos/lsst-dm/galaxy_shear_experiments/stargazers","contributors_url":"https://api.github.com/repos/lsst-dm/galaxy_shear_experiments/contributors","subscribers_url":"https://api.github.com/repos/lsst-dm/galaxy_shear_experiments/subscribers","subscription_url":"https://api.github.com/repos/lsst-dm/galaxy_shear_experiments/subscription","commits_url":"https://api.github.com/repos/lsst-dm/galaxy_shear_experiments/commits{/sha}","git_commits_url":"https://api.github.com/repos/lsst-dm/galaxy_shear_experiments/git/commits{/sha}","comments_url":"https://api.github.com/repos/lsst-dm/galaxy_shear_experiments/comments{/number}","issue_comment_url":"https://api.github.com/repos/lsst-dm/galaxy_shear_experiments/issues/comments{/number}","contents_url":"https://api.github.com/repos/lsst-dm/galaxy_shear_experiments/contents/{+path}","compare_url":"https://api.github.com/repos/lsst-dm/galaxy_shear_experiments/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lsst-dm/galaxy_shear_experiments/merges","archive_url":"https://api.github.com/repos/lsst-dm/galaxy_shear_experiments/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lsst-dm/galaxy_shear_experiments/downloads","issues_url":"https://api.github.com/repos/lsst-dm/galaxy_shear_experiments/issues{/number}","pulls_url":"https://api.github.com/repos/lsst-dm/galaxy_shear_experiments/pulls{/number}","milestones_url":"https://api.github.com/repos/lsst-dm/galaxy_shear_experiments/milestones{/number}","notifications_url":"https://api.github.com/repos/lsst-dm/galaxy_shear_experiments/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lsst-dm/galaxy_shear_experiments/labels{/name}","releases_url":"https://api.github.com/repos/lsst-dm/galaxy_shear_experiments/releases{/id}","created_at":"2015-04-03T16:53:11Z","updated_at":"2015-05-30T04:11:38Z","pushed_at":"2015-06-25T12:05:55Z","git_url":"git://github.com/lsst-dm/galaxy_shear_experiments.git","ssh_url":"git@github.com:lsst-dm/galaxy_shear_experiments.git","clone_url":"https://github.com/lsst-dm/galaxy_shear_experiments.git","svn_url":"https://github.com/lsst-dm/galaxy_shear_experiments","homepage":null,"size":2208,"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":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/lsst-dm/galaxy_shear_experiments/pulls/2"},"html":{"href":"https://github.com/lsst-dm/galaxy_shear_experiments/pull/2"},"issue":{"href":"https://api.github.com/repos/lsst-dm/galaxy_shear_experiments/issues/2"},"comments":{"href":"https://api.github.com/repos/lsst-dm/galaxy_shear_experiments/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/lsst-dm/galaxy_shear_experiments/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/lsst-dm/galaxy_shear_experiments/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/lsst-dm/galaxy_shear_experiments/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/lsst-dm/galaxy_shear_experiments/statuses/c3ab1b77be3da538d6e410010d5f955619f7c3df"}}}}