issue_comments
16 rows where issue = 112253425 sorted by updated_at descending
This data as json, CSV (advanced)
Suggested facets: created_at (date), updated_at (date)
issue 1
- Whether a DataArray is copied when inserted into a Dataset depends on whether coordinates match exactly · 16 ✖
id | html_url | issue_url | node_id | user | created_at | updated_at ▲ | author_association | body | reactions | performed_via_github_app | issue |
---|---|---|---|---|---|---|---|---|---|---|---|
459457428 | https://github.com/pydata/xarray/issues/630#issuecomment-459457428 | https://api.github.com/repos/pydata/xarray/issues/630 | MDEyOklzc3VlQ29tbWVudDQ1OTQ1NzQyOA== | shoyer 1217238 | 2019-01-31T18:40:57Z | 2019-01-31T18:40:57Z | MEMBER | The original example how gives an error about The (Note that |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Whether a DataArray is copied when inserted into a Dataset depends on whether coordinates match exactly 112253425 | |
458897417 | https://github.com/pydata/xarray/issues/630#issuecomment-458897417 | https://api.github.com/repos/pydata/xarray/issues/630 | MDEyOklzc3VlQ29tbWVudDQ1ODg5NzQxNw== | anntzer 1322974 | 2019-01-30T10:42:17Z | 2019-01-30T10:42:17Z | CONTRIBUTOR | Looks like the implicit nan-filling behavior is not present anymore, which likely killed the issue? |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Whether a DataArray is copied when inserted into a Dataset depends on whether coordinates match exactly 112253425 | |
458894587 | https://github.com/pydata/xarray/issues/630#issuecomment-458894587 | https://api.github.com/repos/pydata/xarray/issues/630 | MDEyOklzc3VlQ29tbWVudDQ1ODg5NDU4Nw== | stale[bot] 26384082 | 2019-01-30T10:33:24Z | 2019-01-30T10:33:24Z | NONE | In order to maintain a list of currently relevant issues, we mark issues as stale after a period of inactivity If this issue remains relevant, please comment here; otherwise it will be marked as closed automatically |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Whether a DataArray is copied when inserted into a Dataset depends on whether coordinates match exactly 112253425 | |
152290305 | https://github.com/pydata/xarray/issues/630#issuecomment-152290305 | https://api.github.com/repos/pydata/xarray/issues/630 | MDEyOklzc3VlQ29tbWVudDE1MjI5MDMwNQ== | shoyer 1217238 | 2015-10-29T19:09:57Z | 2015-10-29T19:09:57Z | MEMBER | Yes, that's a great idea! We could add a copy=False argument to both the Dataset and DataArray constructors, like the align function. On Thu, Oct 29, 2015 at 11:58 AM, Joe Hamman notifications@github.com wrote:
|
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Whether a DataArray is copied when inserted into a Dataset depends on whether coordinates match exactly 112253425 | |
152287198 | https://github.com/pydata/xarray/issues/630#issuecomment-152287198 | https://api.github.com/repos/pydata/xarray/issues/630 | MDEyOklzc3VlQ29tbWVudDE1MjI4NzE5OA== | jhamman 2443309 | 2015-10-29T18:58:43Z | 2015-10-29T18:58:43Z | MEMBER | Okay, so the |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Whether a DataArray is copied when inserted into a Dataset depends on whether coordinates match exactly 112253425 | |
152270844 | https://github.com/pydata/xarray/issues/630#issuecomment-152270844 | https://api.github.com/repos/pydata/xarray/issues/630 | MDEyOklzc3VlQ29tbWVudDE1MjI3MDg0NA== | shoyer 1217238 | 2015-10-29T18:14:20Z | 2015-10-29T18:14:20Z | MEMBER |
I agree! I am going to try to clarify and clean this up a little bit for the next version of xray. The only part that should ever trickle back is the |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Whether a DataArray is copied when inserted into a Dataset depends on whether coordinates match exactly 112253425 | |
152269091 | https://github.com/pydata/xarray/issues/630#issuecomment-152269091 | https://api.github.com/repos/pydata/xarray/issues/630 | MDEyOklzc3VlQ29tbWVudDE1MjI2OTA5MQ== | anntzer 1322974 | 2015-10-29T18:07:54Z | 2015-10-29T18:07:54Z | CONTRIBUTOR |
I think the most confusing part is that this the modifications will trickle down sometimes -- even though I'd prefer them to be always propagated, I would still mind much less if they were never propagated. At the end of the day it's not my call, feel free to close the issue if you want. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Whether a DataArray is copied when inserted into a Dataset depends on whether coordinates match exactly 112253425 | |
152265953 | https://github.com/pydata/xarray/issues/630#issuecomment-152265953 | https://api.github.com/repos/pydata/xarray/issues/630 | MDEyOklzc3VlQ29tbWVudDE1MjI2NTk1Mw== | shoyer 1217238 | 2015-10-29T17:56:32Z | 2015-10-29T17:56:32Z | MEMBER |
Yes, in principle we could do that. But it's very surprising for a function to modify it's input arguments, so usually we try to avoid things like that. If you put arrays in a Dataset, you should not count on modifications to the arrays in the Dataset trickling back to the original arrays. Generally, I would recommend something like the following:
or
|
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Whether a DataArray is copied when inserted into a Dataset depends on whether coordinates match exactly 112253425 | |
152105174 | https://github.com/pydata/xarray/issues/630#issuecomment-152105174 | https://api.github.com/repos/pydata/xarray/issues/630 | MDEyOklzc3VlQ29tbWVudDE1MjEwNTE3NA== | anntzer 1322974 | 2015-10-29T07:49:23Z | 2015-10-29T07:49:23Z | CONTRIBUTOR | Sorry to raise the issue again but I just noticed that I had a couple of other places where I wrote quite naturally
which is equivalent to the form I was mentioning earlier (whether To be honest I don't really understand what you mean by "Unfortunately, it's impossible to make such automatically aligned arrays views in general, because of numpy's memory model.": when the line |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Whether a DataArray is copied when inserted into a Dataset depends on whether coordinates match exactly 112253425 | |
150732823 | https://github.com/pydata/xarray/issues/630#issuecomment-150732823 | https://api.github.com/repos/pydata/xarray/issues/630 | MDEyOklzc3VlQ29tbWVudDE1MDczMjgyMw== | shoyer 1217238 | 2015-10-24T01:29:26Z | 2015-10-24T01:29:26Z | MEMBER | @anntzer Yes, that would be a reasonable thing to state in the docs. Though I'm not sure how widespread that pattern is -- this is the first time I've seen it used. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Whether a DataArray is copied when inserted into a Dataset depends on whether coordinates match exactly 112253425 | |
150044109 | https://github.com/pydata/xarray/issues/630#issuecomment-150044109 | https://api.github.com/repos/pydata/xarray/issues/630 | MDEyOklzc3VlQ29tbWVudDE1MDA0NDEwOQ== | anntzer 1322974 | 2015-10-21T22:37:56Z | 2015-10-21T22:37:56Z | CONTRIBUTOR | Thinking about it again, I think there could just be a mention in the docs that the pattern
should be avoided and written as
That should be good enough? |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Whether a DataArray is copied when inserted into a Dataset depends on whether coordinates match exactly 112253425 | |
150007242 | https://github.com/pydata/xarray/issues/630#issuecomment-150007242 | https://api.github.com/repos/pydata/xarray/issues/630 | MDEyOklzc3VlQ29tbWVudDE1MDAwNzI0Mg== | shoyer 1217238 | 2015-10-21T19:53:42Z | 2015-10-21T19:53:42Z | MEMBER |
Yes, I should clarify -- the DataArray you create with the constructor will be a view. When you insert it into a Dataset, it may no longer be a view (if the index coordinates are not aligned). |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Whether a DataArray is copied when inserted into a Dataset depends on whether coordinates match exactly 112253425 | |
149987937 | https://github.com/pydata/xarray/issues/630#issuecomment-149987937 | https://api.github.com/repos/pydata/xarray/issues/630 | MDEyOklzc3VlQ29tbWVudDE0OTk4NzkzNw== | shoyer 1217238 | 2015-10-21T18:36:00Z | 2015-10-21T19:51:46Z | MEMBER | If you use the DataArray constructor instead of inserting an item in a Dataset, the array values will always be a view. If you pre-align the array you are about to insert using Unfortunately, it's impossible to make such automatically aligned arrays views in general, because of numpy's memory model. One thing we could do is add an option to make inserted items always a copy. I would probably put this on the |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Whether a DataArray is copied when inserted into a Dataset depends on whether coordinates match exactly 112253425 | |
149990310 | https://github.com/pydata/xarray/issues/630#issuecomment-149990310 | https://api.github.com/repos/pydata/xarray/issues/630 | MDEyOklzc3VlQ29tbWVudDE0OTk5MDMxMA== | anntzer 1322974 | 2015-10-21T18:45:57Z | 2015-10-21T18:45:57Z | CONTRIBUTOR | "If you use the DataArray constructor instead of inserting an item in a Dataset, the array values will always be a view." Can you explain what you mean here? I am using the DataArray constructor and then inserting the item in the Dataset. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Whether a DataArray is copied when inserted into a Dataset depends on whether coordinates match exactly 112253425 | |
149590758 | https://github.com/pydata/xarray/issues/630#issuecomment-149590758 | https://api.github.com/repos/pydata/xarray/issues/630 | MDEyOklzc3VlQ29tbWVudDE0OTU5MDc1OA== | anntzer 1322974 | 2015-10-20T14:49:55Z | 2015-10-20T14:50:09Z | CONTRIBUTOR | I was more expecting that if the coordinates are not already aligned, then the DataArray gets modified to point to the "larger" array (though of course there may be issues with other variables pointing to the same array, etc.). I like the pattern
(because the explicit name is a bit too long to work with and I make it immediately clear what Not sure what the best approach is. Perhaps
which would make sure that no one else is pointing to the internal array at that point? |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Whether a DataArray is copied when inserted into a Dataset depends on whether coordinates match exactly 112253425 | |
149385943 | https://github.com/pydata/xarray/issues/630#issuecomment-149385943 | https://api.github.com/repos/pydata/xarray/issues/630 | MDEyOklzc3VlQ29tbWVudDE0OTM4NTk0Mw== | shoyer 1217238 | 2015-10-20T00:38:19Z | 2015-10-20T00:38:19Z | MEMBER | Yes, this is certainly the case -- do you suggest doing this differently? If coordinates are already aligned, I would rather not do unnecessary copies -- this could be quite expensive. If this was surprising to you, then it is certainly worth documenting somewhere. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Whether a DataArray is copied when inserted into a Dataset depends on whether coordinates match exactly 112253425 |
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 4