{"action":"created","issue":{"url":"https://api.github.com/repos/MDAnalysis/mdanalysis/issues/385","labels_url":"https://api.github.com/repos/MDAnalysis/mdanalysis/issues/385/labels{/name}","comments_url":"https://api.github.com/repos/MDAnalysis/mdanalysis/issues/385/comments","events_url":"https://api.github.com/repos/MDAnalysis/mdanalysis/issues/385/events","html_url":"https://github.com/MDAnalysis/mdanalysis/issues/385","id":99499816,"number":385,"title":"AtomGroup.resids should return an array of equal size to AtomGroup","user":{"login":"dotsdl","id":1326811,"avatar_url":"https://avatars.githubusercontent.com/u/1326811?v=3","gravatar_id":"","url":"https://api.github.com/users/dotsdl","html_url":"https://github.com/dotsdl","followers_url":"https://api.github.com/users/dotsdl/followers","following_url":"https://api.github.com/users/dotsdl/following{/other_user}","gists_url":"https://api.github.com/users/dotsdl/gists{/gist_id}","starred_url":"https://api.github.com/users/dotsdl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dotsdl/subscriptions","organizations_url":"https://api.github.com/users/dotsdl/orgs","repos_url":"https://api.github.com/users/dotsdl/repos","events_url":"https://api.github.com/users/dotsdl/events{/privacy}","received_events_url":"https://api.github.com/users/dotsdl/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/MDAnalysis/mdanalysis/labels/API","name":"API","color":"eb6420"},{"url":"https://api.github.com/repos/MDAnalysis/mdanalysis/labels/Component-Core","name":"Component-Core","color":"ff0000"},{"url":"https://api.github.com/repos/MDAnalysis/mdanalysis/labels/Priority-High","name":"Priority-High","color":"eb6420"}],"state":"closed","locked":false,"assignee":{"login":"dotsdl","id":1326811,"avatar_url":"https://avatars.githubusercontent.com/u/1326811?v=3","gravatar_id":"","url":"https://api.github.com/users/dotsdl","html_url":"https://github.com/dotsdl","followers_url":"https://api.github.com/users/dotsdl/followers","following_url":"https://api.github.com/users/dotsdl/following{/other_user}","gists_url":"https://api.github.com/users/dotsdl/gists{/gist_id}","starred_url":"https://api.github.com/users/dotsdl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dotsdl/subscriptions","organizations_url":"https://api.github.com/users/dotsdl/orgs","repos_url":"https://api.github.com/users/dotsdl/repos","events_url":"https://api.github.com/users/dotsdl/events{/privacy}","received_events_url":"https://api.github.com/users/dotsdl/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/MDAnalysis/mdanalysis/milestones/3","html_url":"https://github.com/MDAnalysis/mdanalysis/milestones/0.11","labels_url":"https://api.github.com/repos/MDAnalysis/mdanalysis/milestones/3/labels","id":1076757,"number":3,"title":"0.11","description":"API overhaul release. See the [Release Notes for 0.11.0](/MDAnalysis/mdanalysis/wiki/ReleaseNotes0110) for important information.","creator":{"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},"open_issues":3,"closed_issues":70,"state":"open","created_at":"2015-04-21T09:19:32Z","updated_at":"2015-09-04T09:37:53Z","due_on":"2015-09-03T23:00:00Z","closed_at":null},"comments":8,"created_at":"2015-08-06T18:42:45Z","updated_at":"2015-09-04T17:09:42Z","closed_at":"2015-08-31T19:19:25Z","body":"``AtomGroup.resids`` gives an array of resids that is equal in size to ``AtomGroup.residues``, but it would be more consistent to make ``AtomGroup.resids`` yield an array of resids equal in size to ``AtomGroup``. Although the current behavior is useful, there are instances where one actually wants an array of the resids associated with each atom in the ``AtomGroup``, but currently one has to build this array with, e.g. a list comprehension like:\r\n\r\n```python\r\nresids = np.array([atom.resid for atom in atomgroup])\r\n```\r\n\r\nThe current behavior can also be achieved with ``AtomGroup.residues.resids``, so changing this won't eliminate functionality.\r\n\r\nThis issue was originally raised in #372.\r\n\r\n**Edit**: we would also want to change ``AtomGroup.segids`` to also return an array of equal size to ``AtomGroup``."},"comment":{"url":"https://api.github.com/repos/MDAnalysis/mdanalysis/issues/comments/137795242","html_url":"https://github.com/MDAnalysis/mdanalysis/issues/385#issuecomment-137795242","issue_url":"https://api.github.com/repos/MDAnalysis/mdanalysis/issues/385","id":137795242,"user":{"login":"orbeckst","id":237980,"avatar_url":"https://avatars.githubusercontent.com/u/237980?v=3","gravatar_id":"","url":"https://api.github.com/users/orbeckst","html_url":"https://github.com/orbeckst","followers_url":"https://api.github.com/users/orbeckst/followers","following_url":"https://api.github.com/users/orbeckst/following{/other_user}","gists_url":"https://api.github.com/users/orbeckst/gists{/gist_id}","starred_url":"https://api.github.com/users/orbeckst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/orbeckst/subscriptions","organizations_url":"https://api.github.com/users/orbeckst/orgs","repos_url":"https://api.github.com/users/orbeckst/repos","events_url":"https://api.github.com/users/orbeckst/events{/privacy}","received_events_url":"https://api.github.com/users/orbeckst/received_events","type":"User","site_admin":false},"created_at":"2015-09-04T17:09:42Z","updated_at":"2015-09-04T17:09:42Z","body":"Can we please open a new issue for the discussion of what `ResidueGroup` and `SegmentGroup` should do with per-atom properties?"}}