{"action":"created","issue":{"url":"https://api.github.com/repos/astropy/astropy/issues/4037","repository_url":"https://api.github.com/repos/astropy/astropy","labels_url":"https://api.github.com/repos/astropy/astropy/issues/4037/labels{/name}","comments_url":"https://api.github.com/repos/astropy/astropy/issues/4037/comments","events_url":"https://api.github.com/repos/astropy/astropy/issues/4037/events","html_url":"https://github.com/astropy/astropy/issues/4037","id":99048444,"number":4037,"title":"Add convenience property for the base unit of a prefixed unit","user":{"login":"embray","id":676149,"avatar_url":"https://avatars.githubusercontent.com/u/676149?v=3","gravatar_id":"","url":"https://api.github.com/users/embray","html_url":"https://github.com/embray","followers_url":"https://api.github.com/users/embray/followers","following_url":"https://api.github.com/users/embray/following{/other_user}","gists_url":"https://api.github.com/users/embray/gists{/gist_id}","starred_url":"https://api.github.com/users/embray/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/embray/subscriptions","organizations_url":"https://api.github.com/users/embray/orgs","repos_url":"https://api.github.com/users/embray/repos","events_url":"https://api.github.com/users/embray/events{/privacy}","received_events_url":"https://api.github.com/users/embray/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/astropy/astropy/labels/Affects-release","name":"Affects-release","color":"0052cc"},{"url":"https://api.github.com/repos/astropy/astropy/labels/Close?","name":"Close?","color":"eb6420"},{"url":"https://api.github.com/repos/astropy/astropy/labels/Effort-low","name":"Effort-low","color":"fef2c0"},{"url":"https://api.github.com/repos/astropy/astropy/labels/Enhancement","name":"Enhancement","color":"fad8c7"},{"url":"https://api.github.com/repos/astropy/astropy/labels/Package-novice","name":"Package-novice","color":"bfe5bf"},{"url":"https://api.github.com/repos/astropy/astropy/labels/units","name":"units","color":"c7def8"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-08-04T19:56:21Z","updated_at":"2016-04-26T18:06:48Z","closed_at":null,"body":"As pointed out in #3835, given a prefixed unit like `u.kpc` there's no easy way (via a public API) to get at the root unit (without the prefix)--i.e. to get `u.pc` from `u.kpc`.\r\n\r\nThis *can* be gotten from `u.kpc._represents.bases[0]`, but a user-friendly interface for that might be nice to have.\r\n\r\nThe question is just what to call it, and whether the property should be present on all units or just PrefixUnits?"},"comment":{"url":"https://api.github.com/repos/astropy/astropy/issues/comments/214831783","html_url":"https://github.com/astropy/astropy/issues/4037#issuecomment-214831783","issue_url":"https://api.github.com/repos/astropy/astropy/issues/4037","id":214831783,"user":{"login":"mhvk","id":2789820,"avatar_url":"https://avatars.githubusercontent.com/u/2789820?v=3","gravatar_id":"","url":"https://api.github.com/users/mhvk","html_url":"https://github.com/mhvk","followers_url":"https://api.github.com/users/mhvk/followers","following_url":"https://api.github.com/users/mhvk/following{/other_user}","gists_url":"https://api.github.com/users/mhvk/gists{/gist_id}","starred_url":"https://api.github.com/users/mhvk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mhvk/subscriptions","organizations_url":"https://api.github.com/users/mhvk/orgs","repos_url":"https://api.github.com/users/mhvk/repos","events_url":"https://api.github.com/users/mhvk/events{/privacy}","received_events_url":"https://api.github.com/users/mhvk/received_events","type":"User","site_admin":false},"created_at":"2016-04-26T18:06:48Z","updated_at":"2016-04-26T18:06:48Z","body":"@pllim - see #4806"}}