home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 367853004

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/issues/1900#issuecomment-367853004 https://api.github.com/repos/pydata/xarray/issues/1900 367853004 MDEyOklzc3VlQ29tbWVudDM2Nzg1MzAwNA== 4160723 2018-02-22T23:03:27Z 2018-02-22T23:03:27Z MEMBER

Somewhat related to this issue, I have implemented in xarray-simlab some logic to validate xarray.Variable objects (dimensions, dtype, etc.). See this base class and some sub-classes here. I use that in a way which is quite similar to pandas-validator(i.e., using class attributes).

I'm currently in the process of refactoring this using attrs, which supports both validator functions and type annotations. Not sure how to use the latter for xarray objects, though (BTW I wasn't aware of python/typing#513, good to know!!).

I agree that it would be nice to have a more generic way to describe xarray objects that can be reused in many contexts.

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