{"action":"closed","number":210,"pull_request":{"url":"https://api.github.com/repos/STScI-JWST/jwst/pulls/210","id":84481756,"html_url":"https://github.com/STScI-JWST/jwst/pull/210","diff_url":"https://github.com/STScI-JWST/jwst/pull/210.diff","patch_url":"https://github.com/STScI-JWST/jwst/pull/210.patch","issue_url":"https://api.github.com/repos/STScI-JWST/jwst/issues/210","number":210,"state":"closed","locked":false,"title":"Retrieve bintable column names from table instead of datamodels schema","user":{"login":"bernie-simon","id":7916041,"avatar_url":"https://avatars.githubusercontent.com/u/7916041?v=3","gravatar_id":"","url":"https://api.github.com/users/bernie-simon","html_url":"https://github.com/bernie-simon","followers_url":"https://api.github.com/users/bernie-simon/followers","following_url":"https://api.github.com/users/bernie-simon/following{/other_user}","gists_url":"https://api.github.com/users/bernie-simon/gists{/gist_id}","starred_url":"https://api.github.com/users/bernie-simon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bernie-simon/subscriptions","organizations_url":"https://api.github.com/users/bernie-simon/orgs","repos_url":"https://api.github.com/users/bernie-simon/repos","events_url":"https://api.github.com/users/bernie-simon/events{/privacy}","received_events_url":"https://api.github.com/users/bernie-simon/received_events","type":"User","site_admin":false},"body":"While the bintable code makes some attempt to make column access independent of the column name case, the code is layered on numpy records, where access is case dependent. In practice, you must supply column names in the correct case. The function gentle_asarray coerces the type of data read from a model into the type given in the schema. However, in the case of numpy records, the field name is a part of the datatype. This leads to erroneious results if the case of the column name mentioned in the schema disagress with the case of the name in the binary table. The fix replaces the column names read from the schema with the column names from binary table.\r\n","created_at":"2016-09-08T13:53:48Z","updated_at":"2016-09-08T14:38:55Z","closed_at":"2016-09-08T14:38:55Z","merged_at":"2016-09-08T14:38:55Z","merge_commit_sha":"a9cea04738348e8edc2578b921a5e8d40a6cd84a","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/STScI-JWST/jwst/pulls/210/commits","review_comments_url":"https://api.github.com/repos/STScI-JWST/jwst/pulls/210/comments","review_comment_url":"https://api.github.com/repos/STScI-JWST/jwst/pulls/comments{/number}","comments_url":"https://api.github.com/repos/STScI-JWST/jwst/issues/210/comments","statuses_url":"https://api.github.com/repos/STScI-JWST/jwst/statuses/a0533e18ccf417ed9272f72531cdfe6f44af563b","head":{"label":"bernie-simon:read_bintable","ref":"read_bintable","sha":"a0533e18ccf417ed9272f72531cdfe6f44af563b","user":{"login":"bernie-simon","id":7916041,"avatar_url":"https://avatars.githubusercontent.com/u/7916041?v=3","gravatar_id":"","url":"https://api.github.com/users/bernie-simon","html_url":"https://github.com/bernie-simon","followers_url":"https://api.github.com/users/bernie-simon/followers","following_url":"https://api.github.com/users/bernie-simon/following{/other_user}","gists_url":"https://api.github.com/users/bernie-simon/gists{/gist_id}","starred_url":"https://api.github.com/users/bernie-simon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bernie-simon/subscriptions","organizations_url":"https://api.github.com/users/bernie-simon/orgs","repos_url":"https://api.github.com/users/bernie-simon/repos","events_url":"https://api.github.com/users/bernie-simon/events{/privacy}","received_events_url":"https://api.github.com/users/bernie-simon/received_events","type":"User","site_admin":false},"repo":{"id":60785681,"name":"jwst","full_name":"bernie-simon/jwst","owner":{"login":"bernie-simon","id":7916041,"avatar_url":"https://avatars.githubusercontent.com/u/7916041?v=3","gravatar_id":"","url":"https://api.github.com/users/bernie-simon","html_url":"https://github.com/bernie-simon","followers_url":"https://api.github.com/users/bernie-simon/followers","following_url":"https://api.github.com/users/bernie-simon/following{/other_user}","gists_url":"https://api.github.com/users/bernie-simon/gists{/gist_id}","starred_url":"https://api.github.com/users/bernie-simon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bernie-simon/subscriptions","organizations_url":"https://api.github.com/users/bernie-simon/orgs","repos_url":"https://api.github.com/users/bernie-simon/repos","events_url":"https://api.github.com/users/bernie-simon/events{/privacy}","received_events_url":"https://api.github.com/users/bernie-simon/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bernie-simon/jwst","description":"","fork":true,"url":"https://api.github.com/repos/bernie-simon/jwst","forks_url":"https://api.github.com/repos/bernie-simon/jwst/forks","keys_url":"https://api.github.com/repos/bernie-simon/jwst/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bernie-simon/jwst/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bernie-simon/jwst/teams","hooks_url":"https://api.github.com/repos/bernie-simon/jwst/hooks","issue_events_url":"https://api.github.com/repos/bernie-simon/jwst/issues/events{/number}","events_url":"https://api.github.com/repos/bernie-simon/jwst/events","assignees_url":"https://api.github.com/repos/bernie-simon/jwst/assignees{/user}","branches_url":"https://api.github.com/repos/bernie-simon/jwst/branches{/branch}","tags_url":"https://api.github.com/repos/bernie-simon/jwst/tags","blobs_url":"https://api.github.com/repos/bernie-simon/jwst/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bernie-simon/jwst/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bernie-simon/jwst/git/refs{/sha}","trees_url":"https://api.github.com/repos/bernie-simon/jwst/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bernie-simon/jwst/statuses/{sha}","languages_url":"https://api.github.com/repos/bernie-simon/jwst/languages","stargazers_url":"https://api.github.com/repos/bernie-simon/jwst/stargazers","contributors_url":"https://api.github.com/repos/bernie-simon/jwst/contributors","subscribers_url":"https://api.github.com/repos/bernie-simon/jwst/subscribers","subscription_url":"https://api.github.com/repos/bernie-simon/jwst/subscription","commits_url":"https://api.github.com/repos/bernie-simon/jwst/commits{/sha}","git_commits_url":"https://api.github.com/repos/bernie-simon/jwst/git/commits{/sha}","comments_url":"https://api.github.com/repos/bernie-simon/jwst/comments{/number}","issue_comment_url":"https://api.github.com/repos/bernie-simon/jwst/issues/comments{/number}","contents_url":"https://api.github.com/repos/bernie-simon/jwst/contents/{+path}","compare_url":"https://api.github.com/repos/bernie-simon/jwst/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bernie-simon/jwst/merges","archive_url":"https://api.github.com/repos/bernie-simon/jwst/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bernie-simon/jwst/downloads","issues_url":"https://api.github.com/repos/bernie-simon/jwst/issues{/number}","pulls_url":"https://api.github.com/repos/bernie-simon/jwst/pulls{/number}","milestones_url":"https://api.github.com/repos/bernie-simon/jwst/milestones{/number}","notifications_url":"https://api.github.com/repos/bernie-simon/jwst/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bernie-simon/jwst/labels{/name}","releases_url":"https://api.github.com/repos/bernie-simon/jwst/releases{/id}","deployments_url":"https://api.github.com/repos/bernie-simon/jwst/deployments","created_at":"2016-06-09T15:30:20Z","updated_at":"2016-06-09T15:30:22Z","pushed_at":"2016-09-08T13:49:16Z","git_url":"git://github.com/bernie-simon/jwst.git","ssh_url":"git@github.com:bernie-simon/jwst.git","clone_url":"https://github.com/bernie-simon/jwst.git","svn_url":"https://github.com/bernie-simon/jwst","homepage":null,"size":1303,"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":"STScI-JWST:master","ref":"master","sha":"edac8606f3037b866bd709b5268a9bc1bd675ea7","user":{"login":"STScI-JWST","id":17731768,"avatar_url":"https://avatars.githubusercontent.com/u/17731768?v=3","gravatar_id":"","url":"https://api.github.com/users/STScI-JWST","html_url":"https://github.com/STScI-JWST","followers_url":"https://api.github.com/users/STScI-JWST/followers","following_url":"https://api.github.com/users/STScI-JWST/following{/other_user}","gists_url":"https://api.github.com/users/STScI-JWST/gists{/gist_id}","starred_url":"https://api.github.com/users/STScI-JWST/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/STScI-JWST/subscriptions","organizations_url":"https://api.github.com/users/STScI-JWST/orgs","repos_url":"https://api.github.com/users/STScI-JWST/repos","events_url":"https://api.github.com/users/STScI-JWST/events{/privacy}","received_events_url":"https://api.github.com/users/STScI-JWST/received_events","type":"Organization","site_admin":false},"repo":{"id":60551519,"name":"jwst","full_name":"STScI-JWST/jwst","owner":{"login":"STScI-JWST","id":17731768,"avatar_url":"https://avatars.githubusercontent.com/u/17731768?v=3","gravatar_id":"","url":"https://api.github.com/users/STScI-JWST","html_url":"https://github.com/STScI-JWST","followers_url":"https://api.github.com/users/STScI-JWST/followers","following_url":"https://api.github.com/users/STScI-JWST/following{/other_user}","gists_url":"https://api.github.com/users/STScI-JWST/gists{/gist_id}","starred_url":"https://api.github.com/users/STScI-JWST/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/STScI-JWST/subscriptions","organizations_url":"https://api.github.com/users/STScI-JWST/orgs","repos_url":"https://api.github.com/users/STScI-JWST/repos","events_url":"https://api.github.com/users/STScI-JWST/events{/privacy}","received_events_url":"https://api.github.com/users/STScI-JWST/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/STScI-JWST/jwst","description":"","fork":false,"url":"https://api.github.com/repos/STScI-JWST/jwst","forks_url":"https://api.github.com/repos/STScI-JWST/jwst/forks","keys_url":"https://api.github.com/repos/STScI-JWST/jwst/keys{/key_id}","collaborators_url":"https://api.github.com/repos/STScI-JWST/jwst/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/STScI-JWST/jwst/teams","hooks_url":"https://api.github.com/repos/STScI-JWST/jwst/hooks","issue_events_url":"https://api.github.com/repos/STScI-JWST/jwst/issues/events{/number}","events_url":"https://api.github.com/repos/STScI-JWST/jwst/events","assignees_url":"https://api.github.com/repos/STScI-JWST/jwst/assignees{/user}","branches_url":"https://api.github.com/repos/STScI-JWST/jwst/branches{/branch}","tags_url":"https://api.github.com/repos/STScI-JWST/jwst/tags","blobs_url":"https://api.github.com/repos/STScI-JWST/jwst/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/STScI-JWST/jwst/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/STScI-JWST/jwst/git/refs{/sha}","trees_url":"https://api.github.com/repos/STScI-JWST/jwst/git/trees{/sha}","statuses_url":"https://api.github.com/repos/STScI-JWST/jwst/statuses/{sha}","languages_url":"https://api.github.com/repos/STScI-JWST/jwst/languages","stargazers_url":"https://api.github.com/repos/STScI-JWST/jwst/stargazers","contributors_url":"https://api.github.com/repos/STScI-JWST/jwst/contributors","subscribers_url":"https://api.github.com/repos/STScI-JWST/jwst/subscribers","subscription_url":"https://api.github.com/repos/STScI-JWST/jwst/subscription","commits_url":"https://api.github.com/repos/STScI-JWST/jwst/commits{/sha}","git_commits_url":"https://api.github.com/repos/STScI-JWST/jwst/git/commits{/sha}","comments_url":"https://api.github.com/repos/STScI-JWST/jwst/comments{/number}","issue_comment_url":"https://api.github.com/repos/STScI-JWST/jwst/issues/comments{/number}","contents_url":"https://api.github.com/repos/STScI-JWST/jwst/contents/{+path}","compare_url":"https://api.github.com/repos/STScI-JWST/jwst/compare/{base}...{head}","merges_url":"https://api.github.com/repos/STScI-JWST/jwst/merges","archive_url":"https://api.github.com/repos/STScI-JWST/jwst/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/STScI-JWST/jwst/downloads","issues_url":"https://api.github.com/repos/STScI-JWST/jwst/issues{/number}","pulls_url":"https://api.github.com/repos/STScI-JWST/jwst/pulls{/number}","milestones_url":"https://api.github.com/repos/STScI-JWST/jwst/milestones{/number}","notifications_url":"https://api.github.com/repos/STScI-JWST/jwst/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/STScI-JWST/jwst/labels{/name}","releases_url":"https://api.github.com/repos/STScI-JWST/jwst/releases{/id}","deployments_url":"https://api.github.com/repos/STScI-JWST/jwst/deployments","created_at":"2016-06-06T18:34:23Z","updated_at":"2016-09-08T13:56:06Z","pushed_at":"2016-09-08T14:38:55Z","git_url":"git://github.com/STScI-JWST/jwst.git","ssh_url":"git@github.com:STScI-JWST/jwst.git","clone_url":"https://github.com/STScI-JWST/jwst.git","svn_url":"https://github.com/STScI-JWST/jwst","homepage":null,"size":15953,"stargazers_count":5,"watchers_count":5,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":18,"mirror_url":null,"open_issues_count":43,"forks":18,"open_issues":43,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/STScI-JWST/jwst/pulls/210"},"html":{"href":"https://github.com/STScI-JWST/jwst/pull/210"},"issue":{"href":"https://api.github.com/repos/STScI-JWST/jwst/issues/210"},"comments":{"href":"https://api.github.com/repos/STScI-JWST/jwst/issues/210/comments"},"review_comments":{"href":"https://api.github.com/repos/STScI-JWST/jwst/pulls/210/comments"},"review_comment":{"href":"https://api.github.com/repos/STScI-JWST/jwst/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/STScI-JWST/jwst/pulls/210/commits"},"statuses":{"href":"https://api.github.com/repos/STScI-JWST/jwst/statuses/a0533e18ccf417ed9272f72531cdfe6f44af563b"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"bernie-simon","id":7916041,"avatar_url":"https://avatars.githubusercontent.com/u/7916041?v=3","gravatar_id":"","url":"https://api.github.com/users/bernie-simon","html_url":"https://github.com/bernie-simon","followers_url":"https://api.github.com/users/bernie-simon/followers","following_url":"https://api.github.com/users/bernie-simon/following{/other_user}","gists_url":"https://api.github.com/users/bernie-simon/gists{/gist_id}","starred_url":"https://api.github.com/users/bernie-simon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bernie-simon/subscriptions","organizations_url":"https://api.github.com/users/bernie-simon/orgs","repos_url":"https://api.github.com/users/bernie-simon/repos","events_url":"https://api.github.com/users/bernie-simon/events{/privacy}","received_events_url":"https://api.github.com/users/bernie-simon/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"commits":2,"additions":5,"deletions":1,"changed_files":2}}
{"actor":{"display_login":"bernie-simon"}}