{"action":"created","issue":{"url":"https://api.github.com/repos/mdtraj/mdtraj/issues/728","labels_url":"https://api.github.com/repos/mdtraj/mdtraj/issues/728/labels{/name}","comments_url":"https://api.github.com/repos/mdtraj/mdtraj/issues/728/comments","events_url":"https://api.github.com/repos/mdtraj/mdtraj/issues/728/events","html_url":"https://github.com/mdtraj/mdtraj/issues/728","id":58220002,"number":728,"title":"[FR] Atom select check for valid keywords","user":{"login":"synapticarbors","id":589279,"avatar_url":"https://avatars.githubusercontent.com/u/589279?v=3","gravatar_id":"","url":"https://api.github.com/users/synapticarbors","html_url":"https://github.com/synapticarbors","followers_url":"https://api.github.com/users/synapticarbors/followers","following_url":"https://api.github.com/users/synapticarbors/following{/other_user}","gists_url":"https://api.github.com/users/synapticarbors/gists{/gist_id}","starred_url":"https://api.github.com/users/synapticarbors/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/synapticarbors/subscriptions","organizations_url":"https://api.github.com/users/synapticarbors/orgs","repos_url":"https://api.github.com/users/synapticarbors/repos","events_url":"https://api.github.com/users/synapticarbors/events{/privacy}","received_events_url":"https://api.github.com/users/synapticarbors/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-02-19T15:08:40Z","updated_at":"2015-02-19T15:19:26Z","closed_at":null,"body":"I think it would improve user experience and reduce silent errors if the selection DSL did some checking for valid keywords:\r\n\r\n```python \r\nIn [43]: traj.top.select('protein').shape\r\nOut[43]: (7705,)\r\n\r\nIn [44]: traj.top.select('protein and heavy').shape\r\nOut[44]: (7705,)\r\n\r\nIn [45]: traj.top.select('protein and dog').shape\r\nOut[45]: (7705,)\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/mdtraj/mdtraj/issues/comments/75069268","html_url":"https://github.com/mdtraj/mdtraj/issues/728#issuecomment-75069268","issue_url":"https://api.github.com/repos/mdtraj/mdtraj/issues/728","id":75069268,"user":{"login":"swails","id":779022,"avatar_url":"https://avatars.githubusercontent.com/u/779022?v=3","gravatar_id":"","url":"https://api.github.com/users/swails","html_url":"https://github.com/swails","followers_url":"https://api.github.com/users/swails/followers","following_url":"https://api.github.com/users/swails/following{/other_user}","gists_url":"https://api.github.com/users/swails/gists{/gist_id}","starred_url":"https://api.github.com/users/swails/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/swails/subscriptions","organizations_url":"https://api.github.com/users/swails/orgs","repos_url":"https://api.github.com/users/swails/repos","events_url":"https://api.github.com/users/swails/events{/privacy}","received_events_url":"https://api.github.com/users/swails/received_events","type":"User","site_admin":false},"created_at":"2015-02-19T15:19:26Z","updated_at":"2015-02-19T15:19:26Z","body":"> In [45]: traj.top.select('protein and dog').shape\r\n> Out[45]: (7705,)\r\n\r\nI suspect all the atoms in your system *would* actually be present in a dog, though..."}}