home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 202486324

This data as json

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-202486324 https://api.github.com/repos/pydata/xarray/issues/806 202486324 MDEyOklzc3VlQ29tbWVudDIwMjQ4NjMyNA== 1217238 2016-03-28T17:03:13Z 2016-03-28T17:03:13Z MEMBER

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?

This will happen after Dataset.init/DataArray.init. 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.

It's probably worth noting in the documentation that this is equivalent to just adding a property, e.g.,

python class Dataset: ... @property def geo(self) return GeoAccessor(self)

{
    "total_count": 1,
    "+1": 1,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  143877458
Powered by Datasette · Queries took 78.2ms · About: xarray-datasette