html_url,issue_url,id,node_id,user,created_at,updated_at,author_association,body,reactions,performed_via_github_app,issue https://github.com/pydata/xarray/issues/957#issuecomment-238755783,https://api.github.com/repos/pydata/xarray/issues/957,238755783,MDEyOklzc3VlQ29tbWVudDIzODc1NTc4Mw==,5635139,2016-08-10T03:22:07Z,2016-08-10T03:22:07Z,MEMBER,"> I would be interested to know if registering an accessor works Yes I knew about that. Our use case is a bit different - rather than add a property to all `Dataset`s is the environment, we want to do it to specific classes. We used to have a class that had an underlying `Dataset` (or many `DataFrame`s) and then offered accessor properties on top. So the current solution is a bit nicer, in that it integrates those two objects (the custom class and the underlying `Dataset`) into one Numerical operations probably aren't reliable, but that's OK for us ","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,170305429 https://github.com/pydata/xarray/issues/957#issuecomment-238745229,https://api.github.com/repos/pydata/xarray/issues/957,238745229,MDEyOklzc3VlQ29tbWVudDIzODc0NTIyOQ==,1217238,2016-08-10T01:56:22Z,2016-08-10T01:56:22Z,MEMBER,"I would be interested to know if registering an accessor works for you, which was designed for exactly this sort of use case: http://xarray.pydata.org/en/stable/internals.html#extending-xarray The reason why I chose not to just use the qualified name is that `xarray.core.dataset.Dataset` is a little long, and also points users in the direction of private API. But I'd be happy to use qualified names for subclasses not builtin to xarray. Currently you can find this logic in `dataset_repr` and `array_repr` at the bottom of core/formatting.py. You'd just need to write a helper function to calculate the class name rather than our current use of `u'' % type(ds).__name__`. ","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,170305429