issue_comments
2 rows where issue = 124915222 and user = 1217238 sorted by updated_at descending
This data as json, CSV (advanced)
Suggested facets: created_at (date), updated_at (date)
issue 1
- Subclassing Dataset and DataArray · 2 ✖
id | html_url | issue_url | node_id | user | created_at | updated_at ▲ | author_association | body | reactions | performed_via_github_app | issue |
---|---|---|---|---|---|---|---|---|---|---|---|
192114256 | https://github.com/pydata/xarray/issues/706#issuecomment-192114256 | https://api.github.com/repos/pydata/xarray/issues/706 | MDEyOklzc3VlQ29tbWVudDE5MjExNDI1Ng== | shoyer 1217238 | 2016-03-04T05:39:43Z | 2016-03-04T05:39:43Z | MEMBER |
My suggested approach here would be to simply write functions instead, e.g.,
This is similar to how I would suggest inserting lazy variables, i.e., write your own functions using
|
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Subclassing Dataset and DataArray 124915222 | |
169099306 | https://github.com/pydata/xarray/issues/706#issuecomment-169099306 | https://api.github.com/repos/pydata/xarray/issues/706 | MDEyOklzc3VlQ29tbWVudDE2OTA5OTMwNg== | shoyer 1217238 | 2016-01-05T19:05:57Z | 2016-01-05T19:06:06Z | MEMBER | Back when I was doing spectroscopy in grad school, I wrote some routines to keep track of the units in Fourier transforms. I put this up on GitHub last year: https://github.com/shoyer/fourier-transform. I'm sure I'm not the only person to have written this code, but it still might be a useful point of departure. As for xray, I agree that the full extent of what you're describing is probably out of scope for xarray itself. However, a basic labeled FFT does seem like it would be a useful addition to the core library. Nevertheless, I am very interested in supporting external packages like this, either via subclassing or a similar mechanism. One possibility would be a mechanism for registering "namespace" packages that define additional methods (as I have mentioned previously). You could write something like: ``` python this code exists in your library "specarray"class SpecArray(object): def init(self, xray_obj): self.obj = xray_obj
xray.register_accessor('spec', SpecArray) this is what user code looks likeimport specarray import xray ds = xray.DataArray(...) ds.spec.fft() # calls the SpecArray.fft method ``` This might be easier than maintaining a full subclass, which tends to require a lot of work and presents backwards compatibility issues when we update internal methods. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Subclassing Dataset and DataArray 124915222 |
Advanced export
JSON shape: default, array, newline-delimited, object
CREATE TABLE [issue_comments] ( [html_url] TEXT, [issue_url] TEXT, [id] INTEGER PRIMARY KEY, [node_id] TEXT, [user] INTEGER REFERENCES [users]([id]), [created_at] TEXT, [updated_at] TEXT, [author_association] TEXT, [body] TEXT, [reactions] TEXT, [performed_via_github_app] TEXT, [issue] INTEGER REFERENCES [issues]([id]) ); CREATE INDEX [idx_issue_comments_issue] ON [issue_comments] ([issue]); CREATE INDEX [idx_issue_comments_user] ON [issue_comments] ([user]);
user 1