{"action":"created","comment":{"url":"https://api.github.com/repos/astropy/astropy/pulls/comments/102990509","pull_request_review_id":23767582,"id":102990509,"diff_hunk":"@@ -709,6 +710,105 @@ def info(filename, output=None, **kwargs):\n     return ret\n \n \n+def printdiff(inputa, inputb, *args, **kwargs):\n+    \"\"\"\n+    Compare two parts of a fits file, including entire FITS files, FITS HDULists and\n+    FITS HDU objects.\n+\n+    Parameters\n+    ----------\n+    inputa : str of file path, HDUList object, or HDU object\n+        The filename of a FITS file on disk, or HDUList or HDU\n+        object to compare to inputb.\n+\n+    inputb : str of file path, HDUList object, or HDU object\n+        The filename of a FITS file on disk, or HDUList or HDU\n+        object to compare to inputa.\n+\n+    ext, extname, extver\n+        Additional positional arguments are for extension specification if your\n+        inputA and inputB are string filenames (will not work if inputA and\n+        inputB are HDU objects or HDULists). They are flexible and are best illustrated\n+        by examples.  In addition to using these arguments positionaly you can\n+        directly call the keyword parameters ext, extname.\n+\n+        By extension number::\n+\n+            printdiff('inA.fits', 'inB.fits', 0)      # the primary HDU\n+            printdiff('inA.fits', 'inB.fits', 2)      # the second extension\n+            printdiff('inA.fits', 'inB.fits', ext=2)  # the second extension\n+\n+        By name, i.e., ``EXTNAME`` value (if unique)::\n+\n+            printdiff('inA.fits', 'inB.fits', 'sci')\n+            printdiff('inA.fits', 'inB.fits', extname='sci')  # equivalent\n+\n+        Note ``EXTNAME`` values are not case sensitive.\n+\n+        By combination of ``EXTNAME`` and ``EXTVER`` as separate\n+        arguments or as a tuple::\n+\n+            printdiff('inA.fits', 'inB.fits', 'sci', 2)  # EXTNAME='SCI' & EXTVER=2\n+            printdiff('inA.fits', 'inB.fits', extname='sci', extver=2)  # equivalent\n+            printdiff('inA.fits', 'inB.fits', ('sci', 2))  # equivalent\n+\n+        Ambiguous or conflicting specifications will raise an exception::\n+\n+            printdiff('inA.fits', 'inB.fits', ext=('sci',1), extname='err', extver=2)\n+\n+    kwargs\n+        Any additional keyword arguments to be passed to\n+        `astropy.io.fits.FITSDiff`.","path":"astropy/io/fits/convenience.py","position":73,"original_position":73,"commit_id":"dcab036841bfdc2eee057f42230acf8ca6547de9","original_commit_id":"dcab036841bfdc2eee057f42230acf8ca6547de9","user":{"login":"pllim","id":2090236,"avatar_url":"https://avatars.githubusercontent.com/u/2090236?v=3","gravatar_id":"","url":"https://api.github.com/users/pllim","html_url":"https://github.com/pllim","followers_url":"https://api.github.com/users/pllim/followers","following_url":"https://api.github.com/users/pllim/following{/other_user}","gists_url":"https://api.github.com/users/pllim/gists{/gist_id}","starred_url":"https://api.github.com/users/pllim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pllim/subscriptions","organizations_url":"https://api.github.com/users/pllim/orgs","repos_url":"https://api.github.com/users/pllim/repos","events_url":"https://api.github.com/users/pllim/events{/privacy}","received_events_url":"https://api.github.com/users/pllim/received_events","type":"User","site_admin":false},"body":"I agree with @MSeifert04 . I am talking purely about the docstring here that you wrote.","created_at":"2017-02-24T17:30:14Z","updated_at":"2017-02-24T17:30:14Z","html_url":"https://github.com/astropy/astropy/pull/5759#discussion_r102990509","pull_request_url":"https://api.github.com/repos/astropy/astropy/pulls/5759","_links":{"self":{"href":"https://api.github.com/repos/astropy/astropy/pulls/comments/102990509"},"html":{"href":"https://github.com/astropy/astropy/pull/5759#discussion_r102990509"},"pull_request":{"href":"https://api.github.com/repos/astropy/astropy/pulls/5759"}}},"pull_request":{"url":"https://api.github.com/repos/astropy/astropy/pulls/5759","id":104203281,"html_url":"https://github.com/astropy/astropy/pull/5759","diff_url":"https://github.com/astropy/astropy/pull/5759.diff","patch_url":"https://github.com/astropy/astropy/pull/5759.patch","issue_url":"https://api.github.com/repos/astropy/astropy/issues/5759","number":5759,"state":"open","locked":false,"title":"added in a new io convenience function, diff, runs FITSDiff","user":{"login":"SaraOgaz","id":5287848,"avatar_url":"https://avatars.githubusercontent.com/u/5287848?v=3","gravatar_id":"","url":"https://api.github.com/users/SaraOgaz","html_url":"https://github.com/SaraOgaz","followers_url":"https://api.github.com/users/SaraOgaz/followers","following_url":"https://api.github.com/users/SaraOgaz/following{/other_user}","gists_url":"https://api.github.com/users/SaraOgaz/gists{/gist_id}","starred_url":"https://api.github.com/users/SaraOgaz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SaraOgaz/subscriptions","organizations_url":"https://api.github.com/users/SaraOgaz/orgs","repos_url":"https://api.github.com/users/SaraOgaz/repos","events_url":"https://api.github.com/users/SaraOgaz/events{/privacy}","received_events_url":"https://api.github.com/users/SaraOgaz/received_events","type":"User","site_admin":false},"body":"issue #2979 \r\n\r\nI still need to update the sphinx docs and I don't have anything in the change log at the moment, I'm not sure how big the change needs to be to be added into the changelog... I've put in one before that was small enough that it wasn't needed.  Can someone advise?  Also have an open question in #2979 about wether or not I should add a test for this...","created_at":"2017-02-01T19:24:04Z","updated_at":"2017-02-24T17:30:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":"cebd5fb51e4cc2f64f538b09c2ddf2d497199ec1","assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/astropy/astropy/milestones/42","html_url":"https://github.com/astropy/astropy/milestone/42","labels_url":"https://api.github.com/repos/astropy/astropy/milestones/42/labels","id":2169283,"number":42,"title":"v2.0.0","description":"","creator":{"login":"astrofrog","id":314716,"avatar_url":"https://avatars.githubusercontent.com/u/314716?v=3","gravatar_id":"","url":"https://api.github.com/users/astrofrog","html_url":"https://github.com/astrofrog","followers_url":"https://api.github.com/users/astrofrog/followers","following_url":"https://api.github.com/users/astrofrog/following{/other_user}","gists_url":"https://api.github.com/users/astrofrog/gists{/gist_id}","starred_url":"https://api.github.com/users/astrofrog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/astrofrog/subscriptions","organizations_url":"https://api.github.com/users/astrofrog/orgs","repos_url":"https://api.github.com/users/astrofrog/repos","events_url":"https://api.github.com/users/astrofrog/events{/privacy}","received_events_url":"https://api.github.com/users/astrofrog/received_events","type":"User","site_admin":false},"open_issues":31,"closed_issues":32,"state":"open","created_at":"2016-12-01T16:34:27Z","updated_at":"2017-02-23T12:55:02Z","due_on":"2017-06-17T07:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/astropy/astropy/pulls/5759/commits","review_comments_url":"https://api.github.com/repos/astropy/astropy/pulls/5759/comments","review_comment_url":"https://api.github.com/repos/astropy/astropy/pulls/comments{/number}","comments_url":"https://api.github.com/repos/astropy/astropy/issues/5759/comments","statuses_url":"https://api.github.com/repos/astropy/astropy/statuses/dcab036841bfdc2eee057f42230acf8ca6547de9","head":{"label":"SaraOgaz:fitsdiff_convenience","ref":"fitsdiff_convenience","sha":"dcab036841bfdc2eee057f42230acf8ca6547de9","user":{"login":"SaraOgaz","id":5287848,"avatar_url":"https://avatars.githubusercontent.com/u/5287848?v=3","gravatar_id":"","url":"https://api.github.com/users/SaraOgaz","html_url":"https://github.com/SaraOgaz","followers_url":"https://api.github.com/users/SaraOgaz/followers","following_url":"https://api.github.com/users/SaraOgaz/following{/other_user}","gists_url":"https://api.github.com/users/SaraOgaz/gists{/gist_id}","starred_url":"https://api.github.com/users/SaraOgaz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SaraOgaz/subscriptions","organizations_url":"https://api.github.com/users/SaraOgaz/orgs","repos_url":"https://api.github.com/users/SaraOgaz/repos","events_url":"https://api.github.com/users/SaraOgaz/events{/privacy}","received_events_url":"https://api.github.com/users/SaraOgaz/received_events","type":"User","site_admin":false},"repo":{"id":58570431,"name":"astropy","full_name":"SaraOgaz/astropy","owner":{"login":"SaraOgaz","id":5287848,"avatar_url":"https://avatars.githubusercontent.com/u/5287848?v=3","gravatar_id":"","url":"https://api.github.com/users/SaraOgaz","html_url":"https://github.com/SaraOgaz","followers_url":"https://api.github.com/users/SaraOgaz/followers","following_url":"https://api.github.com/users/SaraOgaz/following{/other_user}","gists_url":"https://api.github.com/users/SaraOgaz/gists{/gist_id}","starred_url":"https://api.github.com/users/SaraOgaz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SaraOgaz/subscriptions","organizations_url":"https://api.github.com/users/SaraOgaz/orgs","repos_url":"https://api.github.com/users/SaraOgaz/repos","events_url":"https://api.github.com/users/SaraOgaz/events{/privacy}","received_events_url":"https://api.github.com/users/SaraOgaz/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/SaraOgaz/astropy","description":"Repository for the Astropy core package","fork":true,"url":"https://api.github.com/repos/SaraOgaz/astropy","forks_url":"https://api.github.com/repos/SaraOgaz/astropy/forks","keys_url":"https://api.github.com/repos/SaraOgaz/astropy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SaraOgaz/astropy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SaraOgaz/astropy/teams","hooks_url":"https://api.github.com/repos/SaraOgaz/astropy/hooks","issue_events_url":"https://api.github.com/repos/SaraOgaz/astropy/issues/events{/number}","events_url":"https://api.github.com/repos/SaraOgaz/astropy/events","assignees_url":"https://api.github.com/repos/SaraOgaz/astropy/assignees{/user}","branches_url":"https://api.github.com/repos/SaraOgaz/astropy/branches{/branch}","tags_url":"https://api.github.com/repos/SaraOgaz/astropy/tags","blobs_url":"https://api.github.com/repos/SaraOgaz/astropy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SaraOgaz/astropy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SaraOgaz/astropy/git/refs{/sha}","trees_url":"https://api.github.com/repos/SaraOgaz/astropy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SaraOgaz/astropy/statuses/{sha}","languages_url":"https://api.github.com/repos/SaraOgaz/astropy/languages","stargazers_url":"https://api.github.com/repos/SaraOgaz/astropy/stargazers","contributors_url":"https://api.github.com/repos/SaraOgaz/astropy/contributors","subscribers_url":"https://api.github.com/repos/SaraOgaz/astropy/subscribers","subscription_url":"https://api.github.com/repos/SaraOgaz/astropy/subscription","commits_url":"https://api.github.com/repos/SaraOgaz/astropy/commits{/sha}","git_commits_url":"https://api.github.com/repos/SaraOgaz/astropy/git/commits{/sha}","comments_url":"https://api.github.com/repos/SaraOgaz/astropy/comments{/number}","issue_comment_url":"https://api.github.com/repos/SaraOgaz/astropy/issues/comments{/number}","contents_url":"https://api.github.com/repos/SaraOgaz/astropy/contents/{+path}","compare_url":"https://api.github.com/repos/SaraOgaz/astropy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SaraOgaz/astropy/merges","archive_url":"https://api.github.com/repos/SaraOgaz/astropy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SaraOgaz/astropy/downloads","issues_url":"https://api.github.com/repos/SaraOgaz/astropy/issues{/number}","pulls_url":"https://api.github.com/repos/SaraOgaz/astropy/pulls{/number}","milestones_url":"https://api.github.com/repos/SaraOgaz/astropy/milestones{/number}","notifications_url":"https://api.github.com/repos/SaraOgaz/astropy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SaraOgaz/astropy/labels{/name}","releases_url":"https://api.github.com/repos/SaraOgaz/astropy/releases{/id}","deployments_url":"https://api.github.com/repos/SaraOgaz/astropy/deployments","created_at":"2016-05-11T18:29:35Z","updated_at":"2016-05-11T18:29:40Z","pushed_at":"2017-02-22T15:27:10Z","git_url":"git://github.com/SaraOgaz/astropy.git","ssh_url":"git@github.com:SaraOgaz/astropy.git","clone_url":"https://github.com/SaraOgaz/astropy.git","svn_url":"https://github.com/SaraOgaz/astropy","homepage":"www.astropy.org","size":50475,"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":"astropy:master","ref":"master","sha":"9b18a2b9b6e3d3151b21a1ed7a8c8cbbd857b85a","user":{"login":"astropy","id":847984,"avatar_url":"https://avatars.githubusercontent.com/u/847984?v=3","gravatar_id":"","url":"https://api.github.com/users/astropy","html_url":"https://github.com/astropy","followers_url":"https://api.github.com/users/astropy/followers","following_url":"https://api.github.com/users/astropy/following{/other_user}","gists_url":"https://api.github.com/users/astropy/gists{/gist_id}","starred_url":"https://api.github.com/users/astropy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/astropy/subscriptions","organizations_url":"https://api.github.com/users/astropy/orgs","repos_url":"https://api.github.com/users/astropy/repos","events_url":"https://api.github.com/users/astropy/events{/privacy}","received_events_url":"https://api.github.com/users/astropy/received_events","type":"Organization","site_admin":false},"repo":{"id":2081289,"name":"astropy","full_name":"astropy/astropy","owner":{"login":"astropy","id":847984,"avatar_url":"https://avatars.githubusercontent.com/u/847984?v=3","gravatar_id":"","url":"https://api.github.com/users/astropy","html_url":"https://github.com/astropy","followers_url":"https://api.github.com/users/astropy/followers","following_url":"https://api.github.com/users/astropy/following{/other_user}","gists_url":"https://api.github.com/users/astropy/gists{/gist_id}","starred_url":"https://api.github.com/users/astropy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/astropy/subscriptions","organizations_url":"https://api.github.com/users/astropy/orgs","repos_url":"https://api.github.com/users/astropy/repos","events_url":"https://api.github.com/users/astropy/events{/privacy}","received_events_url":"https://api.github.com/users/astropy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/astropy/astropy","description":"Repository for the Astropy core package","fork":false,"url":"https://api.github.com/repos/astropy/astropy","forks_url":"https://api.github.com/repos/astropy/astropy/forks","keys_url":"https://api.github.com/repos/astropy/astropy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/astropy/astropy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/astropy/astropy/teams","hooks_url":"https://api.github.com/repos/astropy/astropy/hooks","issue_events_url":"https://api.github.com/repos/astropy/astropy/issues/events{/number}","events_url":"https://api.github.com/repos/astropy/astropy/events","assignees_url":"https://api.github.com/repos/astropy/astropy/assignees{/user}","branches_url":"https://api.github.com/repos/astropy/astropy/branches{/branch}","tags_url":"https://api.github.com/repos/astropy/astropy/tags","blobs_url":"https://api.github.com/repos/astropy/astropy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/astropy/astropy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/astropy/astropy/git/refs{/sha}","trees_url":"https://api.github.com/repos/astropy/astropy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/astropy/astropy/statuses/{sha}","languages_url":"https://api.github.com/repos/astropy/astropy/languages","stargazers_url":"https://api.github.com/repos/astropy/astropy/stargazers","contributors_url":"https://api.github.com/repos/astropy/astropy/contributors","subscribers_url":"https://api.github.com/repos/astropy/astropy/subscribers","subscription_url":"https://api.github.com/repos/astropy/astropy/subscription","commits_url":"https://api.github.com/repos/astropy/astropy/commits{/sha}","git_commits_url":"https://api.github.com/repos/astropy/astropy/git/commits{/sha}","comments_url":"https://api.github.com/repos/astropy/astropy/comments{/number}","issue_comment_url":"https://api.github.com/repos/astropy/astropy/issues/comments{/number}","contents_url":"https://api.github.com/repos/astropy/astropy/contents/{+path}","compare_url":"https://api.github.com/repos/astropy/astropy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/astropy/astropy/merges","archive_url":"https://api.github.com/repos/astropy/astropy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/astropy/astropy/downloads","issues_url":"https://api.github.com/repos/astropy/astropy/issues{/number}","pulls_url":"https://api.github.com/repos/astropy/astropy/pulls{/number}","milestones_url":"https://api.github.com/repos/astropy/astropy/milestones{/number}","notifications_url":"https://api.github.com/repos/astropy/astropy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/astropy/astropy/labels{/name}","releases_url":"https://api.github.com/repos/astropy/astropy/releases{/id}","deployments_url":"https://api.github.com/repos/astropy/astropy/deployments","created_at":"2011-07-21T01:33:49Z","updated_at":"2017-02-23T22:08:53Z","pushed_at":"2017-02-24T15:20:58Z","git_url":"git://github.com/astropy/astropy.git","ssh_url":"git@github.com:astropy/astropy.git","clone_url":"https://github.com/astropy/astropy.git","svn_url":"https://github.com/astropy/astropy","homepage":"www.astropy.org","size":52632,"stargazers_count":1169,"watchers_count":1169,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":661,"mirror_url":null,"open_issues_count":820,"forks":661,"open_issues":820,"watchers":1169,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/astropy/astropy/pulls/5759"},"html":{"href":"https://github.com/astropy/astropy/pull/5759"},"issue":{"href":"https://api.github.com/repos/astropy/astropy/issues/5759"},"comments":{"href":"https://api.github.com/repos/astropy/astropy/issues/5759/comments"},"review_comments":{"href":"https://api.github.com/repos/astropy/astropy/pulls/5759/comments"},"review_comment":{"href":"https://api.github.com/repos/astropy/astropy/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/astropy/astropy/pulls/5759/commits"},"statuses":{"href":"https://api.github.com/repos/astropy/astropy/statuses/dcab036841bfdc2eee057f42230acf8ca6547de9"}}}}
{"actor":{"display_login":"pllim"}}