home / github / issue_comments

Menu
  • GraphQL API
  • Search all tables

issue_comments: 202527380

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-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
Powered by Datasette · Queries took 0.727ms · About: xarray-datasette