issue_comments
6 rows where issue = 210704949 and user = 1217238 sorted by updated_at descending
This data as json, CSV (advanced)
Suggested facets: reactions, created_at (date), updated_at (date)
issue 1
- Add trapz to DataArray for mathematical integration · 6 ✖
id | html_url | issue_url | node_id | user | created_at | updated_at ▲ | author_association | body | reactions | performed_via_github_app | issue |
---|---|---|---|---|---|---|---|---|---|---|---|
359543819 | https://github.com/pydata/xarray/issues/1288#issuecomment-359543819 | https://api.github.com/repos/pydata/xarray/issues/1288 | MDEyOklzc3VlQ29tbWVudDM1OTU0MzgxOQ== | shoyer 1217238 | 2018-01-22T19:50:25Z | 2018-01-22T19:50:25Z | MEMBER | I opened https://github.com/pydata/xarray/issues/1850 to discuss xarray-contrib. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Add trapz to DataArray for mathematical integration 210704949 | |
293982053 | https://github.com/pydata/xarray/issues/1288#issuecomment-293982053 | https://api.github.com/repos/pydata/xarray/issues/1288 | MDEyOklzc3VlQ29tbWVudDI5Mzk4MjA1Mw== | shoyer 1217238 | 2017-04-13T18:24:07Z | 2017-04-13T18:24:07Z | MEMBER |
I would also be very happy to include many of these in a submodule inside xarray, e.g., |
{ "total_count": 1, "+1": 1, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Add trapz to DataArray for mathematical integration 210704949 | |
287840030 | https://github.com/pydata/xarray/issues/1288#issuecomment-287840030 | https://api.github.com/repos/pydata/xarray/issues/1288 | MDEyOklzc3VlQ29tbWVudDI4Nzg0MDAzMA== | shoyer 1217238 | 2017-03-20T17:43:12Z | 2017-03-20T17:43:12Z | MEMBER |
Yes, I agree with both of you that we should fix
From a performance perspective, it would be totally fine to implement this either in terms of high level xarray operations like |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Add trapz to DataArray for mathematical integration 210704949 | |
287680627 | https://github.com/pydata/xarray/issues/1288#issuecomment-287680627 | https://api.github.com/repos/pydata/xarray/issues/1288 | MDEyOklzc3VlQ29tbWVudDI4NzY4MDYyNw== | shoyer 1217238 | 2017-03-20T05:22:10Z | 2017-03-20T05:22:10Z | MEMBER | Sorry for letting this lapse. Yes, we absolutely want this functionality in some form.
This is a fair point, and I agree with you from a purist OO-programming/software-engineering perspective (TensorFlow, for example, takes this approach). But with xarray, we have been taking a different path, putting methods on objects for the convenience of method chaining (like pandas). So from a consistency perspective, I think it's fine to keep these as methods. This is somewhat similar even to NumPy, where a number of the most commonly used functions are also methods.
I don't see a big advantage to adding such an extension point. Almost assuredly it's less text and more clear to simply write
I normally don't like adding flags for switching functionality entirely but maybe that would make sense here if there's enough shared code (e.g., simply substituting One thing that can be useful to do before writing code is to write out a docstring with all the bells and whistles we might eventually add. So let's give that a shot here and see if Argumentsdim : str or DataArray DataArray or reference to an existing coordinate, labeling what to integrate over. cumulative : bool, optional Whether to do a non-cumulative (default) or cumulative integral. method : 'trapz' or 'simps', optional Whether to use the trapezoidal rule or Simpson's rule. ``` I could also imagine possibly adding a |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Add trapz to DataArray for mathematical integration 210704949 | |
283109247 | https://github.com/pydata/xarray/issues/1288#issuecomment-283109247 | https://api.github.com/repos/pydata/xarray/issues/1288 | MDEyOklzc3VlQ29tbWVudDI4MzEwOTI0Nw== | shoyer 1217238 | 2017-02-28T17:34:05Z | 2017-02-28T19:00:00Z | MEMBER | As usual @rabernat raises some excellent points!
Yes, this is a totally valid concern, if a user might expect One point in favor of calling this
Looking at the rest of
I doubt we'll be able to come up with hard and fast rules, but maybe we can enumerate some principles, e.g.,
|
{ "total_count": 2, "+1": 2, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Add trapz to DataArray for mathematical integration 210704949 | |
282968309 | https://github.com/pydata/xarray/issues/1288#issuecomment-282968309 | https://api.github.com/repos/pydata/xarray/issues/1288 | MDEyOklzc3VlQ29tbWVudDI4Mjk2ODMwOQ== | shoyer 1217238 | 2017-02-28T07:55:14Z | 2017-02-28T08:09:23Z | MEMBER | I agree that the API should mostly copy the As long as there isn't something else we'd want to reserve the name for, I like the sound of It looks like SciPy implements Simpson's rule with the same API (see scipy.integrate.simps), so that would be easy to support, too. Given how prevalent SciPy is these days, I would have no compunctions about making scipy required for this method and defaulting to It would be useful to have dask.array versions of these functions, too, but that's not essential for a first pass. The implementation of CC @spencerahill @rabernat @lesommer in case any of you have opinions about this |
{ "total_count": 1, "+1": 1, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Add trapz to DataArray for mathematical integration 210704949 |
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