issue_comments: 285363937
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/1303#issuecomment-285363937 | https://api.github.com/repos/pydata/xarray/issues/1303 | 285363937 | MDEyOklzc3VlQ29tbWVudDI4NTM2MzkzNw== | 4160723 | 2017-03-09T14:22:33Z | 2017-03-09T14:29:28Z | MEMBER | mmh not sure if a custom datastore would be most appropriate for my problem, which actually is not about loading (writing) data of a given format into (from) a Dataset. Ultimately, what I'm trying to do is implementing an API for creating numerical model components, which is heavily inspired from Django ORM (i.e., how models and fields are defined), and use the xarray data structures as an interface. Let me show a more detailed (though still very incomplete) example of how it would look like: ```python class Parameter(object): def init(self, default=None, allowed_values=None, exclude_dims=None, include_dims=None, bounds=(None, None), attrs=None): # ...
class Model(object): def init(**params): # ...
class StreamPower(Model): k = Parameter(default=7e-5, bounds=(0., None), attrs={'units': 'm**2/y'}) m = Parameter(default=0.4) n = Parameter(default=1)
``` ```python
|
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
213004586 |