{"action":"created","comment":{"url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/pyuvdata/pulls/comments/207006695","pull_request_review_id":142532266,"id":207006695,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwNzAwNjY5NQ==","diff_hunk":"@@ -104,12 +104,19 @@ def _get_parameter_data(self, vis_hdu):\n                                  * const.c.to('m/s').value).T\n \n         if 'INTTIM' in vis_hdu.data.parnames:\n-            self.integration_time = float(vis_hdu.data.par('INTTIM')[0])\n+            inttim = vis_hdu.data.par('INTTIM')\n+            if len(inttim) == 1:\n+                # assume that all integration times in the file are the same","path":"pyuvdata/uvfits.py","position":7,"original_position":7,"commit_id":"30f99519b99aced4b5f62a61cb1e9b07b637d444","original_commit_id":"30f99519b99aced4b5f62a61cb1e9b07b637d444","user":{"login":"plaplant","id":9141156,"node_id":"MDQ6VXNlcjkxNDExNTY=","avatar_url":"https://avatars1.githubusercontent.com/u/9141156?v=4","gravatar_id":"","url":"https://api.github.com/users/plaplant","html_url":"https://github.com/plaplant","followers_url":"https://api.github.com/users/plaplant/followers","following_url":"https://api.github.com/users/plaplant/following{/other_user}","gists_url":"https://api.github.com/users/plaplant/gists{/gist_id}","starred_url":"https://api.github.com/users/plaplant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/plaplant/subscriptions","organizations_url":"https://api.github.com/users/plaplant/orgs","repos_url":"https://api.github.com/users/plaplant/repos","events_url":"https://api.github.com/users/plaplant/events{/privacy}","received_events_url":"https://api.github.com/users/plaplant/received_events","type":"User","site_admin":false},"body":"I just tried running the tests without this if statement, and I didn't have any issues. I must have been misremembering a different issue I was having. I'll remove this clause, thanks for finding it!","created_at":"2018-08-01T19:38:40Z","updated_at":"2018-08-01T19:38:41Z","html_url":"https://github.com/RadioAstronomySoftwareGroup/pyuvdata/pull/429#discussion_r207006695","pull_request_url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/pyuvdata/pulls/429","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/RadioAstronomySoftwareGroup/pyuvdata/pulls/comments/207006695"},"html":{"href":"https://github.com/RadioAstronomySoftwareGroup/pyuvdata/pull/429#discussion_r207006695"},"pull_request":{"href":"https://api.github.com/repos/RadioAstronomySoftwareGroup/pyuvdata/pulls/429"}},"in_reply_to_id":206982075},"pull_request":{"url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/pyuvdata/pulls/429","id":205497072,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA1NDk3MDcy","html_url":"https://github.com/RadioAstronomySoftwareGroup/pyuvdata/pull/429","diff_url":"https://github.com/RadioAstronomySoftwareGroup/pyuvdata/pull/429.diff","patch_url":"https://github.com/RadioAstronomySoftwareGroup/pyuvdata/pull/429.patch","issue_url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/pyuvdata/issues/429","number":429,"state":"open","locked":false,"title":"Fix `integration_time` attribute","user":{"login":"plaplant","id":9141156,"node_id":"MDQ6VXNlcjkxNDExNTY=","avatar_url":"https://avatars1.githubusercontent.com/u/9141156?v=4","gravatar_id":"","url":"https://api.github.com/users/plaplant","html_url":"https://github.com/plaplant","followers_url":"https://api.github.com/users/plaplant/followers","following_url":"https://api.github.com/users/plaplant/following{/other_user}","gists_url":"https://api.github.com/users/plaplant/gists{/gist_id}","starred_url":"https://api.github.com/users/plaplant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/plaplant/subscriptions","organizations_url":"https://api.github.com/users/plaplant/orgs","repos_url":"https://api.github.com/users/plaplant/repos","events_url":"https://api.github.com/users/plaplant/events{/privacy}","received_events_url":"https://api.github.com/users/plaplant/received_events","type":"User","site_admin":false},"body":"To support baseline-dependent averaging, the `integration_time` attribute on a UVData object should be an array of size Nblts, instead of a single number. Miriad and uvfits support this feature, and so I/O routines were modified to correctly account for this.\r\n\r\nFixes #426.","created_at":"2018-08-01T17:25:25Z","updated_at":"2018-08-01T19:38:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5a2e267ba3fa21d642e3b48ed7f3f7861bbadab6","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/pyuvdata/pulls/429/commits","review_comments_url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/pyuvdata/pulls/429/comments","review_comment_url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/pyuvdata/pulls/comments{/number}","comments_url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/pyuvdata/issues/429/comments","statuses_url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/pyuvdata/statuses/30f99519b99aced4b5f62a61cb1e9b07b637d444","head":{"label":"RadioAstronomySoftwareGroup:integration_time_fix","ref":"integration_time_fix","sha":"30f99519b99aced4b5f62a61cb1e9b07b637d444","user":{"login":"RadioAstronomySoftwareGroup","id":41453363,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQxNDUzMzYz","avatar_url":"https://avatars1.githubusercontent.com/u/41453363?v=4","gravatar_id":"","url":"https://api.github.com/users/RadioAstronomySoftwareGroup","html_url":"https://github.com/RadioAstronomySoftwareGroup","followers_url":"https://api.github.com/users/RadioAstronomySoftwareGroup/followers","following_url":"https://api.github.com/users/RadioAstronomySoftwareGroup/following{/other_user}","gists_url":"https://api.github.com/users/RadioAstronomySoftwareGroup/gists{/gist_id}","starred_url":"https://api.github.com/users/RadioAstronomySoftwareGroup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RadioAstronomySoftwareGroup/subscriptions","organizations_url":"https://api.github.com/users/RadioAstronomySoftwareGroup/orgs","repos_url":"https://api.github.com/users/RadioAstronomySoftwareGroup/repos","events_url":"https://api.github.com/users/RadioAstronomySoftwareGroup/events{/privacy}","received_events_url":"https://api.github.com/users/RadioAstronomySoftwareGroup/received_events","type":"Organization","site_admin":false},"repo":{"id":44563082,"node_id":"MDEwOlJlcG9zaXRvcnk0NDU2MzA4Mg==","name":"pyuvdata","full_name":"RadioAstronomySoftwareGroup/pyuvdata","owner":{"login":"RadioAstronomySoftwareGroup","id":41453363,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQxNDUzMzYz","avatar_url":"https://avatars1.githubusercontent.com/u/41453363?v=4","gravatar_id":"","url":"https://api.github.com/users/RadioAstronomySoftwareGroup","html_url":"https://github.com/RadioAstronomySoftwareGroup","followers_url":"https://api.github.com/users/RadioAstronomySoftwareGroup/followers","following_url":"https://api.github.com/users/RadioAstronomySoftwareGroup/following{/other_user}","gists_url":"https://api.github.com/users/RadioAstronomySoftwareGroup/gists{/gist_id}","starred_url":"https://api.github.com/users/RadioAstronomySoftwareGroup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RadioAstronomySoftwareGroup/subscriptions","organizations_url":"https://api.github.com/users/RadioAstronomySoftwareGroup/orgs","repos_url":"https://api.github.com/users/RadioAstronomySoftwareGroup/repos","events_url":"https://api.github.com/users/RadioAstronomySoftwareGroup/events{/privacy}","received_events_url":"https://api.github.com/users/RadioAstronomySoftwareGroup/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/RadioAstronomySoftwareGroup/pyuvdata","description":"A python model for interferometry data.","fork":false,"url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/pyuvdata","forks_url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/pyuvdata/forks","keys_url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/pyuvdata/keys{/key_id}","collaborators_url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/pyuvdata/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/pyuvdata/teams","hooks_url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/pyuvdata/hooks","issue_events_url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/pyuvdata/issues/events{/number}","events_url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/pyuvdata/events","assignees_url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/pyuvdata/assignees{/user}","branches_url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/pyuvdata/branches{/branch}","tags_url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/pyuvdata/tags","blobs_url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/pyuvdata/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/pyuvdata/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/pyuvdata/git/refs{/sha}","trees_url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/pyuvdata/git/trees{/sha}","statuses_url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/pyuvdata/statuses/{sha}","languages_url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/pyuvdata/languages","stargazers_url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/pyuvdata/stargazers","contributors_url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/pyuvdata/contributors","subscribers_url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/pyuvdata/subscribers","subscription_url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/pyuvdata/subscription","commits_url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/pyuvdata/commits{/sha}","git_commits_url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/pyuvdata/git/commits{/sha}","comments_url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/pyuvdata/comments{/number}","issue_comment_url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/pyuvdata/issues/comments{/number}","contents_url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/pyuvdata/contents/{+path}","compare_url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/pyuvdata/compare/{base}...{head}","merges_url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/pyuvdata/merges","archive_url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/pyuvdata/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/pyuvdata/downloads","issues_url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/pyuvdata/issues{/number}","pulls_url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/pyuvdata/pulls{/number}","milestones_url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/pyuvdata/milestones{/number}","notifications_url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/pyuvdata/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/pyuvdata/labels{/name}","releases_url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/pyuvdata/releases{/id}","deployments_url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/pyuvdata/deployments","created_at":"2015-10-19T20:47:41Z","updated_at":"2018-08-01T19:25:22Z","pushed_at":"2018-08-01T19:25:21Z","git_url":"git://github.com/RadioAstronomySoftwareGroup/pyuvdata.git","ssh_url":"git@github.com:RadioAstronomySoftwareGroup/pyuvdata.git","clone_url":"https://github.com/RadioAstronomySoftwareGroup/pyuvdata.git","svn_url":"https://github.com/RadioAstronomySoftwareGroup/pyuvdata","homepage":"https://pyuvdata.readthedocs.io/en/latest/index.html","size":74167,"stargazers_count":18,"watchers_count":18,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":8,"mirror_url":null,"archived":false,"open_issues_count":56,"license":{"key":"bsd-2-clause","name":"BSD 2-Clause \"Simplified\" License","spdx_id":"BSD-2-Clause","url":"https://api.github.com/licenses/bsd-2-clause","node_id":"MDc6TGljZW5zZTQ="},"forks":8,"open_issues":56,"watchers":18,"default_branch":"master"}},"base":{"label":"RadioAstronomySoftwareGroup:master","ref":"master","sha":"013a0295d9570a91b4494dbbace12aa616540f12","user":{"login":"RadioAstronomySoftwareGroup","id":41453363,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQxNDUzMzYz","avatar_url":"https://avatars1.githubusercontent.com/u/41453363?v=4","gravatar_id":"","url":"https://api.github.com/users/RadioAstronomySoftwareGroup","html_url":"https://github.com/RadioAstronomySoftwareGroup","followers_url":"https://api.github.com/users/RadioAstronomySoftwareGroup/followers","following_url":"https://api.github.com/users/RadioAstronomySoftwareGroup/following{/other_user}","gists_url":"https://api.github.com/users/RadioAstronomySoftwareGroup/gists{/gist_id}","starred_url":"https://api.github.com/users/RadioAstronomySoftwareGroup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RadioAstronomySoftwareGroup/subscriptions","organizations_url":"https://api.github.com/users/RadioAstronomySoftwareGroup/orgs","repos_url":"https://api.github.com/users/RadioAstronomySoftwareGroup/repos","events_url":"https://api.github.com/users/RadioAstronomySoftwareGroup/events{/privacy}","received_events_url":"https://api.github.com/users/RadioAstronomySoftwareGroup/received_events","type":"Organization","site_admin":false},"repo":{"id":44563082,"node_id":"MDEwOlJlcG9zaXRvcnk0NDU2MzA4Mg==","name":"pyuvdata","full_name":"RadioAstronomySoftwareGroup/pyuvdata","owner":{"login":"RadioAstronomySoftwareGroup","id":41453363,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQxNDUzMzYz","avatar_url":"https://avatars1.githubusercontent.com/u/41453363?v=4","gravatar_id":"","url":"https://api.github.com/users/RadioAstronomySoftwareGroup","html_url":"https://github.com/RadioAstronomySoftwareGroup","followers_url":"https://api.github.com/users/RadioAstronomySoftwareGroup/followers","following_url":"https://api.github.com/users/RadioAstronomySoftwareGroup/following{/other_user}","gists_url":"https://api.github.com/users/RadioAstronomySoftwareGroup/gists{/gist_id}","starred_url":"https://api.github.com/users/RadioAstronomySoftwareGroup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RadioAstronomySoftwareGroup/subscriptions","organizations_url":"https://api.github.com/users/RadioAstronomySoftwareGroup/orgs","repos_url":"https://api.github.com/users/RadioAstronomySoftwareGroup/repos","events_url":"https://api.github.com/users/RadioAstronomySoftwareGroup/events{/privacy}","received_events_url":"https://api.github.com/users/RadioAstronomySoftwareGroup/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/RadioAstronomySoftwareGroup/pyuvdata","description":"A python model for interferometry data.","fork":false,"url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/pyuvdata","forks_url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/pyuvdata/forks","keys_url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/pyuvdata/keys{/key_id}","collaborators_url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/pyuvdata/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/pyuvdata/teams","hooks_url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/pyuvdata/hooks","issue_events_url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/pyuvdata/issues/events{/number}","events_url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/pyuvdata/events","assignees_url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/pyuvdata/assignees{/user}","branches_url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/pyuvdata/branches{/branch}","tags_url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/pyuvdata/tags","blobs_url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/pyuvdata/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/pyuvdata/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/pyuvdata/git/refs{/sha}","trees_url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/pyuvdata/git/trees{/sha}","statuses_url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/pyuvdata/statuses/{sha}","languages_url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/pyuvdata/languages","stargazers_url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/pyuvdata/stargazers","contributors_url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/pyuvdata/contributors","subscribers_url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/pyuvdata/subscribers","subscription_url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/pyuvdata/subscription","commits_url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/pyuvdata/commits{/sha}","git_commits_url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/pyuvdata/git/commits{/sha}","comments_url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/pyuvdata/comments{/number}","issue_comment_url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/pyuvdata/issues/comments{/number}","contents_url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/pyuvdata/contents/{+path}","compare_url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/pyuvdata/compare/{base}...{head}","merges_url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/pyuvdata/merges","archive_url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/pyuvdata/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/pyuvdata/downloads","issues_url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/pyuvdata/issues{/number}","pulls_url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/pyuvdata/pulls{/number}","milestones_url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/pyuvdata/milestones{/number}","notifications_url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/pyuvdata/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/pyuvdata/labels{/name}","releases_url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/pyuvdata/releases{/id}","deployments_url":"https://api.github.com/repos/RadioAstronomySoftwareGroup/pyuvdata/deployments","created_at":"2015-10-19T20:47:41Z","updated_at":"2018-08-01T19:25:22Z","pushed_at":"2018-08-01T19:25:21Z","git_url":"git://github.com/RadioAstronomySoftwareGroup/pyuvdata.git","ssh_url":"git@github.com:RadioAstronomySoftwareGroup/pyuvdata.git","clone_url":"https://github.com/RadioAstronomySoftwareGroup/pyuvdata.git","svn_url":"https://github.com/RadioAstronomySoftwareGroup/pyuvdata","homepage":"https://pyuvdata.readthedocs.io/en/latest/index.html","size":74167,"stargazers_count":18,"watchers_count":18,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":8,"mirror_url":null,"archived":false,"open_issues_count":56,"license":{"key":"bsd-2-clause","name":"BSD 2-Clause \"Simplified\" License","spdx_id":"BSD-2-Clause","url":"https://api.github.com/licenses/bsd-2-clause","node_id":"MDc6TGljZW5zZTQ="},"forks":8,"open_issues":56,"watchers":18,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/RadioAstronomySoftwareGroup/pyuvdata/pulls/429"},"html":{"href":"https://github.com/RadioAstronomySoftwareGroup/pyuvdata/pull/429"},"issue":{"href":"https://api.github.com/repos/RadioAstronomySoftwareGroup/pyuvdata/issues/429"},"comments":{"href":"https://api.github.com/repos/RadioAstronomySoftwareGroup/pyuvdata/issues/429/comments"},"review_comments":{"href":"https://api.github.com/repos/RadioAstronomySoftwareGroup/pyuvdata/pulls/429/comments"},"review_comment":{"href":"https://api.github.com/repos/RadioAstronomySoftwareGroup/pyuvdata/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/RadioAstronomySoftwareGroup/pyuvdata/pulls/429/commits"},"statuses":{"href":"https://api.github.com/repos/RadioAstronomySoftwareGroup/pyuvdata/statuses/30f99519b99aced4b5f62a61cb1e9b07b637d444"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"plaplant"}}