issue_comments
13 rows where issue = 28376794 sorted by updated_at descending
This data as json, CSV (advanced)
Suggested facets: created_at (date), updated_at (date)
issue 1
- Consistent rules for handling merges between variables with different attributes · 13 ✖
id | html_url | issue_url | node_id | user | created_at | updated_at ▲ | author_association | body | reactions | performed_via_github_app | issue |
---|---|---|---|---|---|---|---|---|---|---|---|
54416883 | https://github.com/pydata/xarray/issues/25#issuecomment-54416883 | https://api.github.com/repos/pydata/xarray/issues/25 | MDEyOklzc3VlQ29tbWVudDU0NDE2ODgz | shoyer 1217238 | 2014-09-04T06:50:49Z | 2014-09-04T06:50:49Z | MEMBER | I'm going to close this issue as fixed, but feel free to complain if you feel otherwise (particularly if you have ideas for how we should improve this). The rule that we seem to have settled on is that xray will either drop all attributes if the result could be ambiguous, or, if there is a clear priority, it will only keep around attributes from the first object. The one firm rule is that xray does not do any checking of attributes for conflicts. Unless In cases where there are two objects to combine but where the priority is clearer (e.g., in |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Consistent rules for handling merges between variables with different attributes 28376794 | |
42349463 | https://github.com/pydata/xarray/issues/25#issuecomment-42349463 | https://api.github.com/repos/pydata/xarray/issues/25 | MDEyOklzc3VlQ29tbWVudDQyMzQ5NDYz | shoyer 1217238 | 2014-05-06T19:44:27Z | 2014-05-06T19:44:27Z | MEMBER | I think this has been mostly resolved by the |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Consistent rules for handling merges between variables with different attributes 28376794 | |
36196139 | https://github.com/pydata/xarray/issues/25#issuecomment-36196139 | https://api.github.com/repos/pydata/xarray/issues/25 | MDEyOklzc3VlQ29tbWVudDM2MTk2MTM5 | ebrevdo 1794715 | 2014-02-27T00:28:13Z | 2014-02-27T00:28:13Z | CONTRIBUTOR | Agreed. I would avoid that kind of thing too. Maybe a stern warning for all conflicting attributes, and saying that they will be dropped from the new variable. For units specifically, Python has a variety of unit libraries that wrap numpy arrays and can probably do some magic. Not sure if we really want to do that, though. On Wed, Feb 26, 2014 at 4:07 PM, Stephan Hoyer notifications@github.comwrote:
|
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Consistent rules for handling merges between variables with different attributes 28376794 | |
36194729 | https://github.com/pydata/xarray/issues/25#issuecomment-36194729 | https://api.github.com/repos/pydata/xarray/issues/25 | MDEyOklzc3VlQ29tbWVudDM2MTk0NzI5 | shoyer 1217238 | 2014-02-27T00:07:29Z | 2014-02-27T00:07:29Z | MEMBER | Stern warnings about conflicting attributes like units may be an appropriate compromise. But if we go that way, I would advocate for making units drop upon doing any mathematical operation. We could try to update units automatically (e.g., kg * kg = kg^2), but that is tricky to always right. Celsius, for example, is a pretty weird physical unit because of how it can take on negative values, so it actually makes a lot of sense to use mostly use Kelvin instead (for which I can sensibly apply any math operation like times or minus). That doesn't mean that I want to store all my raw data in degrees K, though... On Wed, Feb 26, 2014 at 3:45 PM, ebrevdo notifications@github.com wrote:
|
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Consistent rules for handling merges between variables with different attributes 28376794 | |
36193148 | https://github.com/pydata/xarray/issues/25#issuecomment-36193148 | https://api.github.com/repos/pydata/xarray/issues/25 | MDEyOklzc3VlQ29tbWVudDM2MTkzMTQ4 | ebrevdo 1794715 | 2014-02-26T23:45:57Z | 2014-02-26T23:45:57Z | CONTRIBUTOR | err, which attributes conflict. On Wed, Feb 26, 2014 at 3:45 PM, Eugene Brevdo ebrevdo@gmail.com wrote:
|
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Consistent rules for handling merges between variables with different attributes 28376794 | |
36193126 | https://github.com/pydata/xarray/issues/25#issuecomment-36193126 | https://api.github.com/repos/pydata/xarray/issues/25 | MDEyOklzc3VlQ29tbWVudDM2MTkzMTI2 | ebrevdo 1794715 | 2014-02-26T23:45:42Z | 2014-02-26T23:45:42Z | CONTRIBUTOR | I don't think that example has your intended affect. I don't know why anyone would add something of units kelvin with those of celsius. I understand what you're saying, so maybe we should just throw a stern warning listing which units conflict and how, every single time. On Wed, Feb 26, 2014 at 3:42 PM, Stephan Hoyer notifications@github.comwrote:
|
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Consistent rules for handling merges between variables with different attributes 28376794 | |
36192859 | https://github.com/pydata/xarray/issues/25#issuecomment-36192859 | https://api.github.com/repos/pydata/xarray/issues/25 | MDEyOklzc3VlQ29tbWVudDM2MTkyODU5 | shoyer 1217238 | 2014-02-26T23:42:27Z | 2014-02-26T23:42:27Z | MEMBER | I see your point, but I favor a more pragmatic approach by default. See my fourth bullet under "Design Goals" in the README and bullet ii under Iris in "Prior Art". My vision here is a more powerful ndarray enhanced rather than limited by metadata. This is closer to what pandas does, which even allows for conflicting indices resulting in NaN values (a feature I would love to copy). I think that both use cases can be covered as long as the merge/conflict
logic is clearly documented and it is possible to write stricter logic for
library code (which by necessity will be more verbose). If it is essential
for units to agree before doing x + y, you can add On Wed, Feb 26, 2014 at 3:23 PM, ebrevdo notifications@github.com wrote:
|
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Consistent rules for handling merges between variables with different attributes 28376794 | |
36190935 | https://github.com/pydata/xarray/issues/25#issuecomment-36190935 | https://api.github.com/repos/pydata/xarray/issues/25 | MDEyOklzc3VlQ29tbWVudDM2MTkwOTM1 | ebrevdo 1794715 | 2014-02-26T23:23:39Z | 2014-02-26T23:23:39Z | CONTRIBUTOR | Also, there are plenty of other bits where you don't want conflicts. Imagine that you have variables indexed on different basemap projections. Creating exceptions to the rule seems like a bit of a rabbit hole. On Wed, Feb 26, 2014 at 3:13 PM, Eugene Brevdo ebrevdo@gmail.com wrote:
|
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Consistent rules for handling merges between variables with different attributes 28376794 | |
36190079 | https://github.com/pydata/xarray/issues/25#issuecomment-36190079 | https://api.github.com/repos/pydata/xarray/issues/25 | MDEyOklzc3VlQ29tbWVudDM2MTkwMDc5 | ebrevdo 1794715 | 2014-02-26T23:13:42Z | 2014-02-26T23:13:42Z | CONTRIBUTOR | This is an option, but these lists will break if we try to express other data formats using these conventions. For example, grib likely has other conventions. We would have to overload attribute or variable depending on what the underlying datastore is. On Wed, Feb 26, 2014 at 3:03 PM, Stephan Hoyer notifications@github.comwrote:
|
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Consistent rules for handling merges between variables with different attributes 28376794 | |
36189171 | https://github.com/pydata/xarray/issues/25#issuecomment-36189171 | https://api.github.com/repos/pydata/xarray/issues/25 | MDEyOklzc3VlQ29tbWVudDM2MTg5MTcx | shoyer 1217238 | 2014-02-26T23:03:06Z | 2014-02-26T23:03:06Z | MEMBER |
My concern is more that metadata like "title" or "source" should not be required to match, because that metadata will almost always be conflicting. Perhaps "units", "_FIllValue", "scale_factor" and "add_offset" (if values were not automatically masked/scaled) should be specifically blacklisted to prohibit conflicts. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Consistent rules for handling merges between variables with different attributes 28376794 | |
36188397 | https://github.com/pydata/xarray/issues/25#issuecomment-36188397 | https://api.github.com/repos/pydata/xarray/issues/25 | MDEyOklzc3VlQ29tbWVudDM2MTg4Mzk3 | ebrevdo 1794715 | 2014-02-26T22:55:10Z | 2014-02-26T22:55:10Z | CONTRIBUTOR | It depends on whether x+y does attribute checking before performing the merge. Again, if units don't match then maybe you shouldn't add. I always favor the strictest approach so you don't get strange surprises. On Wed, Feb 26, 2014 at 2:47 PM, Stephan Hoyer notifications@github.comwrote:
|
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Consistent rules for handling merges between variables with different attributes 28376794 | |
36187723 | https://github.com/pydata/xarray/issues/25#issuecomment-36187723 | https://api.github.com/repos/pydata/xarray/issues/25 | MDEyOklzc3VlQ29tbWVudDM2MTg3NzIz | shoyer 1217238 | 2014-02-26T22:47:54Z | 2014-02-26T22:47:54Z | MEMBER |
For merge itself, I would agree that we may want to default to stricter behavior, but for these other versions of merge we should default to something more flexible. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Consistent rules for handling merges between variables with different attributes 28376794 | |
36186918 | https://github.com/pydata/xarray/issues/25#issuecomment-36186918 | https://api.github.com/repos/pydata/xarray/issues/25 | MDEyOklzc3VlQ29tbWVudDM2MTg2OTE4 | ebrevdo 1794715 | 2014-02-26T22:39:30Z | 2014-02-26T22:39:30Z | CONTRIBUTOR | I would default to 3, and in the exception suggest using a different merge option. Imagine merging two datasets with different _FillValue, unit, or compression attributes. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Consistent rules for handling merges between variables with different attributes 28376794 |
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 2