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/pull/806#issuecomment-202527380,https://api.github.com/repos/pydata/xarray/issues/806,202527380,MDEyOklzc3VlQ29tbWVudDIwMjUyNzM4MA==,1634164,2016-03-28T18:52:01Z,2016-03-28T18:53:35Z,NONE,"@fmaussion that's still helpful, thanks. > For cases where you want to do custom initialization, the suggestion (which I should add) is to simply write your own function to use in place of `xarray.open_dataset`. Now that I think of it, it should also be possible to use some other in logic in `__init__()`—or even as a kludge store something like `xarray_obj.attrs['_geoaccessor_state']`—to determine whether the object is already, or needs to be, ""initialized"" (whatever that happens to mean for each accessor). For instance, if the accessor creates and uses certain variables in a Dataset, it could check for their presence, and skip any initialization code if they already exist. ","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,143877458 https://github.com/pydata/xarray/pull/806#issuecomment-202473784,https://api.github.com/repos/pydata/xarray/issues/806,202473784,MDEyOklzc3VlQ29tbWVudDIwMjQ3Mzc4NA==,1634164,2016-03-28T16:31:59Z,2016-03-28T16:31:59Z,NONE,"Of the two different projects I'm working (sporadically) on that both subclass Dataset, it seems like one (pyGDX) should more properly be a backend, while the other could work as an accessor. This code looks good! Just to be clear—`xarray_obj` is passed to the `__init__()` method of an accessor. Will this happen before, or after `Dataset.__init__()`/`DataArray.__init__()` is invoked? ","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,143877458