{"action":"created","issue":{"url":"https://api.github.com/repos/MDAnalysis/mdanalysis/issues/1066","repository_url":"https://api.github.com/repos/MDAnalysis/mdanalysis","labels_url":"https://api.github.com/repos/MDAnalysis/mdanalysis/issues/1066/labels{/name}","comments_url":"https://api.github.com/repos/MDAnalysis/mdanalysis/issues/1066/comments","events_url":"https://api.github.com/repos/MDAnalysis/mdanalysis/issues/1066/events","html_url":"https://github.com/MDAnalysis/mdanalysis/pull/1066","id":187731997,"number":1066,"title":"Issue #839 - Resid selection with icodes","user":{"login":"richardjgowers","id":9249543,"avatar_url":"https://avatars.githubusercontent.com/u/9249543?v=3","gravatar_id":"","url":"https://api.github.com/users/richardjgowers","html_url":"https://github.com/richardjgowers","followers_url":"https://api.github.com/users/richardjgowers/followers","following_url":"https://api.github.com/users/richardjgowers/following{/other_user}","gists_url":"https://api.github.com/users/richardjgowers/gists{/gist_id}","starred_url":"https://api.github.com/users/richardjgowers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/richardjgowers/subscriptions","organizations_url":"https://api.github.com/users/richardjgowers/orgs","repos_url":"https://api.github.com/users/richardjgowers/repos","events_url":"https://api.github.com/users/richardjgowers/events{/privacy}","received_events_url":"https://api.github.com/users/richardjgowers/received_events","type":"User","site_admin":false},"labels":[{"id":195620630,"url":"https://api.github.com/repos/MDAnalysis/mdanalysis/labels/help%20wanted","name":"help wanted","color":"fef222","default":true},{"id":195620731,"url":"https://api.github.com/repos/MDAnalysis/mdanalysis/labels/review","name":"review","color":"bfdadc","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2016-11-07T14:54:45Z","updated_at":"2016-11-11T13:59:45Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/MDAnalysis/mdanalysis/pulls/1066","html_url":"https://github.com/MDAnalysis/mdanalysis/pull/1066","diff_url":"https://github.com/MDAnalysis/mdanalysis/pull/1066.diff","patch_url":"https://github.com/MDAnalysis/mdanalysis/pull/1066.patch"},"body":"Fixes #839\r\n\r\nChanges made in this Pull Request:\r\n - Resid selections can now be suffixed by an icode\r\n\r\nEg:\r\n\r\n```python\r\nu.select_atoms('resid 163A')\r\n# is the same as\r\nu.select_atoms('resid 163 and icode A')\r\n```\r\n\r\n\r\nPR Checklist\r\n------------\r\n - [x] Tests?\r\n - [x] Docs?\r\n - [x] CHANGELOG updated?\r\n - [x] Issue raised/referenced?\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/MDAnalysis/mdanalysis/issues/comments/259962650","html_url":"https://github.com/MDAnalysis/mdanalysis/pull/1066#issuecomment-259962650","issue_url":"https://api.github.com/repos/MDAnalysis/mdanalysis/issues/1066","id":259962650,"user":{"login":"richardjgowers","id":9249543,"avatar_url":"https://avatars.githubusercontent.com/u/9249543?v=3","gravatar_id":"","url":"https://api.github.com/users/richardjgowers","html_url":"https://github.com/richardjgowers","followers_url":"https://api.github.com/users/richardjgowers/followers","following_url":"https://api.github.com/users/richardjgowers/following{/other_user}","gists_url":"https://api.github.com/users/richardjgowers/gists{/gist_id}","starred_url":"https://api.github.com/users/richardjgowers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/richardjgowers/subscriptions","organizations_url":"https://api.github.com/users/richardjgowers/orgs","repos_url":"https://api.github.com/users/richardjgowers/repos","events_url":"https://api.github.com/users/richardjgowers/events{/privacy}","received_events_url":"https://api.github.com/users/richardjgowers/received_events","type":"User","site_admin":false},"created_at":"2016-11-11T13:59:45Z","updated_at":"2016-11-11T13:59:45Z","body":"In the `2 2A` and `2C 2` case, `resid 2` always selects the residue without an insertion code.  \r\n\r\nIn general the order / sorting of values won't matter when doing selections.  Eg if you're selecting `resid 2A-7` from `1 2 2A 2B 12 13 14 2C 6 7` you will still select `2A 2B 2C 6 7` despite the values in the middle."}}
{"actor":{"display_login":"richardjgowers"}}