issue_comments
8 rows where author_association = "CONTRIBUTOR" and issue = 484015016 sorted by updated_at descending
This data as json, CSV (advanced)
Suggested facets: created_at (date), updated_at (date)
issue 1
- tests for arrays with units · 8 ✖
id | html_url | issue_url | node_id | user | created_at | updated_at ▲ | author_association | body | reactions | performed_via_github_app | issue |
---|---|---|---|---|---|---|---|---|---|---|---|
532383428 | https://github.com/pydata/xarray/pull/3238#issuecomment-532383428 | https://api.github.com/repos/pydata/xarray/issues/3238 | MDEyOklzc3VlQ29tbWVudDUzMjM4MzQyOA== | jthielen 3460034 | 2019-09-17T20:14:33Z | 2019-09-17T20:14:33Z | CONTRIBUTOR | @keewis Thank you for catching this! I've pushed an update to https://github.com/andrewgsavage/pint/pull/6 with your suggested changes. Raising an error on incompatible/missing units is definitely something that will be need to be added, but it may take some re-thinking the current implementations and how I'm thinking that discussion regarding bugs with pint's upcoming |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
tests for arrays with units 484015016 | |
531606320 | https://github.com/pydata/xarray/pull/3238#issuecomment-531606320 | https://api.github.com/repos/pydata/xarray/issues/3238 | MDEyOklzc3VlQ29tbWVudDUzMTYwNjMyMA== | jthielen 3460034 | 2019-09-15T22:51:41Z | 2019-09-15T22:51:41Z | CONTRIBUTOR | @keewis Thank you for pointing that out, I forgot to mention that right now mixed types are not handled by https://github.com/hgrecco/pint/pull/764 (see https://github.com/hgrecco/pint/pull/764#issuecomment-523272038). |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
tests for arrays with units 484015016 | |
531603936 | https://github.com/pydata/xarray/pull/3238#issuecomment-531603936 | https://api.github.com/repos/pydata/xarray/issues/3238 | MDEyOklzc3VlQ29tbWVudDUzMTYwMzkzNg== | jthielen 3460034 | 2019-09-15T22:15:16Z | 2019-09-15T22:15:53Z | CONTRIBUTOR | @keewis My inclination is to think of the units as part of the data, and that, for example, I'm not sure about the indexing behavior. From the sounds of your prior comment, it works because it functions as an "object-type" index? If so, it may cause a decent hit on performance. I'd definitely want to hear others' thoughts on it too. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
tests for arrays with units 484015016 | |
531600938 | https://github.com/pydata/xarray/pull/3238#issuecomment-531600938 | https://api.github.com/repos/pydata/xarray/issues/3238 | MDEyOklzc3VlQ29tbWVudDUzMTYwMDkzOA== | jthielen 3460034 | 2019-09-15T21:27:27Z | 2019-09-15T21:27:27Z | CONTRIBUTOR | @keewis In https://github.com/andrewgsavage/pint/pull/6, I implemented Does this behavior seem reasonable to you? Also, would this be something that should be cleared up with an issue on pint's end? |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
tests for arrays with units 484015016 | |
527245079 | https://github.com/pydata/xarray/pull/3238#issuecomment-527245079 | https://api.github.com/repos/pydata/xarray/issues/3238 | MDEyOklzc3VlQ29tbWVudDUyNzI0NTA3OQ== | jthielen 3460034 | 2019-09-02T21:24:52Z | 2019-09-02T21:31:05Z | CONTRIBUTOR | After digging a bit more into
Based on your tests and examples, I would agree that https://github.com/pydata/xarray/issues/3241 isn't really fixed. I also agree that adding the method tests is a good idea. Thank you for clarifying about the ```python import xarray as xr import numpy as np import pint unit_registry = pint.UnitRegistry() array = np.linspace(5, 10, 20).astype(int) * unit_registry.m x = np.arange(len(array)) * unit_registry.s data_array = xr.DataArray(data=array, coords={"x": x}, dims=["x"]) print(data_array.sel(x = [15, 16] * unit_registry.volts))
|
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
tests for arrays with units 484015016 | |
527230031 | https://github.com/pydata/xarray/pull/3238#issuecomment-527230031 | https://api.github.com/repos/pydata/xarray/issues/3238 | MDEyOklzc3VlQ29tbWVudDUyNzIzMDAzMQ== | jthielen 3460034 | 2019-09-02T19:32:16Z | 2019-09-02T19:32:16Z | CONTRIBUTOR | Thank you for the update! Here are responses to each issue brought up:
I passed up
For indexing, when you say "working," would you be able to clarify what your expected behavior is for indexing? Based on https://github.com/pydata/xarray/issues/525#issuecomment-514880353 and the preceding discussion, right now indices will have units stripped, so for me at least, I would expect any attempt at unit-aware indexing to either not work or raise a |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
tests for arrays with units 484015016 | |
524099935 | https://github.com/pydata/xarray/pull/3238#issuecomment-524099935 | https://api.github.com/repos/pydata/xarray/issues/3238 | MDEyOklzc3VlQ29tbWVudDUyNDA5OTkzNQ== | jthielen 3460034 | 2019-08-22T22:20:49Z | 2019-08-22T22:20:49Z | CONTRIBUTOR | I noticed you have As to why the warning is happening in the first place, I think that is because the Hence, the |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
tests for arrays with units 484015016 | |
524088212 | https://github.com/pydata/xarray/pull/3238#issuecomment-524088212 | https://api.github.com/repos/pydata/xarray/issues/3238 | MDEyOklzc3VlQ29tbWVudDUyNDA4ODIxMg== | jthielen 3460034 | 2019-08-22T21:39:38Z | 2019-08-22T21:39:38Z | CONTRIBUTOR | @keewis: In case it helps, I've added a bunch of additional |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
tests for arrays with units 484015016 |
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