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-367857689,https://api.github.com/repos/pydata/xarray/issues/1900,367857689,MDEyOklzc3VlQ29tbWVudDM2Nzg1NzY4OQ==,4160723,2018-02-22T23:25:11Z,2018-02-22T23:25:11Z,MEMBER,"@maxim-lian you're right. In this case `xsimlab.Variable` is a different concept than `xarray.Variable`, despite that they both have the same name. The former is tight to the modelling framework while the latter is only used for simulation inputs and outputs in xarray-simlab.
> Do we have a list of projects that integrate xarray?
There is an ongoing discussion in #1850 about having something like xarray-contrib (likely a github organization).
","{""total_count"": 1, ""+1"": 1, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,295959111
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](https://github.com/benbovy/xarray-simlab/blob/master/xsimlab/variable/base.py#L35) and some sub-classes [here](https://github.com/benbovy/xarray-simlab/blob/master/xsimlab/variable/custom.py). 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](https://github.com/python-attrs/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