{"url":"https://api.github.com/repos/open-cogsci/OpenSesame/issues/470","repository_url":"https://api.github.com/repos/open-cogsci/OpenSesame","labels_url":"https://api.github.com/repos/open-cogsci/OpenSesame/issues/470/labels{/name}","comments_url":"https://api.github.com/repos/open-cogsci/OpenSesame/issues/470/comments","events_url":"https://api.github.com/repos/open-cogsci/OpenSesame/issues/470/events","html_url":"https://github.com/open-cogsci/OpenSesame/pull/470","id":182821473,"node_id":"MDExOlB1bGxSZXF1ZXN0ODkyMjUxMzk=","number":470,"title":"Raise error for invalid 'bgmode' arguments","user":{"login":"wkruijne","id":3511180,"node_id":"MDQ6VXNlcjM1MTExODA=","avatar_url":"https://avatars.githubusercontent.com/u/3511180?v=4","gravatar_id":"","url":"https://api.github.com/users/wkruijne","html_url":"https://github.com/wkruijne","followers_url":"https://api.github.com/users/wkruijne/followers","following_url":"https://api.github.com/users/wkruijne/following{/other_user}","gists_url":"https://api.github.com/users/wkruijne/gists{/gist_id}","starred_url":"https://api.github.com/users/wkruijne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wkruijne/subscriptions","organizations_url":"https://api.github.com/users/wkruijne/orgs","repos_url":"https://api.github.com/users/wkruijne/repos","events_url":"https://api.github.com/users/wkruijne/events{/privacy}","received_events_url":"https://api.github.com/users/wkruijne/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[],"state":"closed","locked":false,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-10-13T15:25:31Z","updated_at":"2016-10-19T08:29:53Z","closed_at":"2016-10-14T10:26:21Z","assignee":null,"author_association":"CONTRIBUTOR","issue_field_values":[],"type":null,"active_lock_reason":null,"draft":false,"pull_request":{"url":"https://api.github.com/repos/open-cogsci/OpenSesame/pulls/470","html_url":"https://github.com/open-cogsci/OpenSesame/pull/470","diff_url":"https://github.com/open-cogsci/OpenSesame/pull/470.diff","patch_url":"https://github.com/open-cogsci/OpenSesame/pull/470.patch","merged_at":null},"body":"Rather than using 'col2' for anything that is not 'avg', the argument has to be avg or col2.\n\nThis shields against potential incorrect outcomes, for example if the user forgets the correct terminology. They could, say, call these functions with `..., bgmode=\"average\"`and get the behavior as if `\"col2\"` was used without any warning or error message. \n\nI feel an  error for incorrect keywords is the safest and most appropriate behavior.\nThanks!\nW\n","closed_by":{"login":"smathot","id":594936,"node_id":"MDQ6VXNlcjU5NDkzNg==","avatar_url":"https://avatars.githubusercontent.com/u/594936?v=4","gravatar_id":"","url":"https://api.github.com/users/smathot","html_url":"https://github.com/smathot","followers_url":"https://api.github.com/users/smathot/followers","following_url":"https://api.github.com/users/smathot/following{/other_user}","gists_url":"https://api.github.com/users/smathot/gists{/gist_id}","starred_url":"https://api.github.com/users/smathot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smathot/subscriptions","organizations_url":"https://api.github.com/users/smathot/orgs","repos_url":"https://api.github.com/users/smathot/repos","events_url":"https://api.github.com/users/smathot/events{/privacy}","received_events_url":"https://api.github.com/users/smathot/received_events","type":"User","user_view_type":"public","site_admin":false},"reactions":{"url":"https://api.github.com/repos/open-cogsci/OpenSesame/issues/470/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https://api.github.com/repos/open-cogsci/OpenSesame/issues/470/timeline","performed_via_github_app":null,"state_reason":null}