issue_comments
45 rows where issue = 484015016 sorted by updated_at descending
This data as json, CSV (advanced)
Suggested facets: reactions, created_at (date), updated_at (date)
issue 1
- tests for arrays with units · 45 ✖
id | html_url | issue_url | node_id | user | created_at | updated_at ▲ | author_association | body | reactions | performed_via_github_app | issue |
---|---|---|---|---|---|---|---|---|---|---|---|
544389429 | https://github.com/pydata/xarray/pull/3238#issuecomment-544389429 | https://api.github.com/repos/pydata/xarray/issues/3238 | MDEyOklzc3VlQ29tbWVudDU0NDM4OTQyOQ== | shoyer 1217238 | 2019-10-21T07:39:51Z | 2019-10-21T07:39:51Z | MEMBER | awesome work @keewis ! |
{ "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 | |
542985324 | https://github.com/pydata/xarray/pull/3238#issuecomment-542985324 | https://api.github.com/repos/pydata/xarray/issues/3238 | MDEyOklzc3VlQ29tbWVudDU0Mjk4NTMyNA== | dcherian 2448579 | 2019-10-17T03:41:55Z | 2019-10-17T03:41:55Z | MEMBER | Phew thanks a lot @keewis! |
{ "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 | |
542979204 | https://github.com/pydata/xarray/pull/3238#issuecomment-542979204 | https://api.github.com/repos/pydata/xarray/issues/3238 | MDEyOklzc3VlQ29tbWVudDU0Mjk3OTIwNA== | max-sixty 5635139 | 2019-10-17T03:14:06Z | 2019-10-17T03:14:06Z | MEMBER | Great! Quite an effort @keewis —thank you! |
{ "total_count": 3, "+1": 0, "-1": 0, "laugh": 0, "hooray": 3, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
tests for arrays with units 484015016 | |
542944296 | https://github.com/pydata/xarray/pull/3238#issuecomment-542944296 | https://api.github.com/repos/pydata/xarray/issues/3238 | MDEyOklzc3VlQ29tbWVudDU0Mjk0NDI5Ng== | keewis 14808389 | 2019-10-17T00:25:28Z | 2019-10-17T01:49:30Z | MEMBER | I would think so, too. Go ahead. Edit: seems like other PRs have the same problem, see #3409 |
{ "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 | |
542938278 | https://github.com/pydata/xarray/pull/3238#issuecomment-542938278 | https://api.github.com/repos/pydata/xarray/issues/3238 | MDEyOklzc3VlQ29tbWVudDU0MjkzODI3OA== | max-sixty 5635139 | 2019-10-16T23:56:26Z | 2019-10-16T23:56:26Z | MEMBER | I think these tests are unrelated and we can merge? ```python =================================== FAILURES =================================== ____ testdatetime_reduce[False] ______ dask = False
xarray/tests/test_duck_array_ops.py:288: AssertionError ____ test_datetime_reduce[True] ______ dask = True
|
{ "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 | |
542929485 | https://github.com/pydata/xarray/pull/3238#issuecomment-542929485 | https://api.github.com/repos/pydata/xarray/issues/3238 | MDEyOklzc3VlQ29tbWVudDU0MjkyOTQ4NQ== | keewis 14808389 | 2019-10-16T23:16:36Z | 2019-10-16T23:16:36Z | MEMBER | done |
{ "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 | |
542924573 | https://github.com/pydata/xarray/pull/3238#issuecomment-542924573 | https://api.github.com/repos/pydata/xarray/issues/3238 | MDEyOklzc3VlQ29tbWVudDU0MjkyNDU3Mw== | crusaderky 6213168 | 2019-10-16T22:56:22Z | 2019-10-16T22:56:22Z | MEMBER | Also please move the what's new blob from 0.14.0 to 0.14.1 |
{ "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 | |
542923962 | https://github.com/pydata/xarray/pull/3238#issuecomment-542923962 | https://api.github.com/repos/pydata/xarray/issues/3238 | MDEyOklzc3VlQ29tbWVudDU0MjkyMzk2Mg== | crusaderky 6213168 | 2019-10-16T22:53:55Z | 2019-10-16T22:54:39Z | MEMBER | whatsnew.rst: ``` - Added integration tests against pint https://pint.readthedocs.io/_. .. note::
.. note::
``` |
{ "total_count": 3, "+1": 3, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
tests for arrays with units 484015016 | |
542922171 | https://github.com/pydata/xarray/pull/3238#issuecomment-542922171 | https://api.github.com/repos/pydata/xarray/issues/3238 | MDEyOklzc3VlQ29tbWVudDU0MjkyMjE3MQ== | keewis 14808389 | 2019-10-16T22:46:40Z | 2019-10-16T22:46:40Z | MEMBER | I don't really know what to write about
because a feature list seems to be a bit too long to me. re |
{ "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 | |
542920960 | https://github.com/pydata/xarray/pull/3238#issuecomment-542920960 | https://api.github.com/repos/pydata/xarray/issues/3238 | MDEyOklzc3VlQ29tbWVudDU0MjkyMDk2MA== | crusaderky 6213168 | 2019-10-16T22:41:50Z | 2019-10-16T22:41:50Z | MEMBER | @keewis looks good. Also something equivalent in installing.rst on the line that mentions pint, please |
{ "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 | |
542916210 | https://github.com/pydata/xarray/pull/3238#issuecomment-542916210 | https://api.github.com/repos/pydata/xarray/issues/3238 | MDEyOklzc3VlQ29tbWVudDU0MjkxNjIxMA== | keewis 14808389 | 2019-10-16T22:23:59Z | 2019-10-16T22:30:19Z | MEMBER | I have been using a PR to hgrecco/pint#764 because that has been the version that had the most tests pass. Is that okay, or should I use the original PR instead? So something like this?
Edit: this one works |
{ "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 | |
542913779 | https://github.com/pydata/xarray/pull/3238#issuecomment-542913779 | https://api.github.com/repos/pydata/xarray/issues/3238 | MDEyOklzc3VlQ29tbWVudDU0MjkxMzc3OQ== | max-sixty 5635139 | 2019-10-16T22:14:56Z | 2019-10-16T22:14:56Z | MEMBER |
(remove emphasis in actual version)
👍 , let's add a sentence |
{ "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 | |
542911985 | https://github.com/pydata/xarray/pull/3238#issuecomment-542911985 | https://api.github.com/repos/pydata/xarray/issues/3238 | MDEyOklzc3VlQ29tbWVudDU0MjkxMTk4NQ== | crusaderky 6213168 | 2019-10-16T22:08:17Z | 2019-10-16T22:08:17Z | MEMBER | @keewis maybe you could clarify where to find this special version and how to get it ( |
{ "total_count": 1, "+1": 1, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
tests for arrays with units 484015016 | |
542910978 | https://github.com/pydata/xarray/pull/3238#issuecomment-542910978 | https://api.github.com/repos/pydata/xarray/issues/3238 | MDEyOklzc3VlQ29tbWVudDU0MjkxMDk3OA== | keewis 14808389 | 2019-10-16T22:04:46Z | 2019-10-16T22:04:46Z | MEMBER | what do you think of this for
|
{ "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 | |
542901674 | https://github.com/pydata/xarray/pull/3238#issuecomment-542901674 | https://api.github.com/repos/pydata/xarray/issues/3238 | MDEyOklzc3VlQ29tbWVudDU0MjkwMTY3NA== | crusaderky 6213168 | 2019-10-16T21:35:39Z | 2019-10-16T21:35:39Z | MEMBER | @keewis could you tweak whatsnew.rst and installing.rst to set the expectations (very low) for people using the current latest available release of pint? |
{ "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 | |
542416181 | https://github.com/pydata/xarray/pull/3238#issuecomment-542416181 | https://api.github.com/repos/pydata/xarray/issues/3238 | MDEyOklzc3VlQ29tbWVudDU0MjQxNjE4MQ== | max-sixty 5635139 | 2019-10-15T21:38:43Z | 2019-10-15T21:38:43Z | MEMBER | OK great! @crusaderky any final thoughts? Anyone else? |
{ "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 | |
542391175 | https://github.com/pydata/xarray/pull/3238#issuecomment-542391175 | https://api.github.com/repos/pydata/xarray/issues/3238 | MDEyOklzc3VlQ29tbWVudDU0MjM5MTE3NQ== | max-sixty 5635139 | 2019-10-15T20:30:30Z | 2019-10-15T20:30:30Z | MEMBER |
👍 |
{ "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 | |
542181588 | https://github.com/pydata/xarray/pull/3238#issuecomment-542181588 | https://api.github.com/repos/pydata/xarray/issues/3238 | MDEyOklzc3VlQ29tbWVudDU0MjE4MTU4OA== | keewis 14808389 | 2019-10-15T12:13:40Z | 2019-10-15T18:53:03Z | MEMBER | I updated the PR so that all the DataArray methods I found in the docs have a test, the only exception is
Edit: I assumed this to be the same as datetime, which means object labels instead of strings. So now only the top-level functions and dataset are missing. I'd like to leave these two and replacing |
{ "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 | |
539758682 | https://github.com/pydata/xarray/pull/3238#issuecomment-539758682 | https://api.github.com/repos/pydata/xarray/issues/3238 | MDEyOklzc3VlQ29tbWVudDUzOTc1ODY4Mg== | crusaderky 6213168 | 2019-10-09T00:22:44Z | 2019-10-09T00:22:44Z | MEMBER | Fixed CI, What's New, and Installing doc |
{ "total_count": 3, "+1": 3, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
tests for arrays with units 484015016 | |
539748076 | https://github.com/pydata/xarray/pull/3238#issuecomment-539748076 | https://api.github.com/repos/pydata/xarray/issues/3238 | MDEyOklzc3VlQ29tbWVudDUzOTc0ODA3Ng== | keewis 14808389 | 2019-10-08T23:34:49Z | 2019-10-08T23:34:49Z | MEMBER | that's fine with me. I resolved the merge conflicts (along with other stuff), so only |
{ "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 | |
539578433 | https://github.com/pydata/xarray/pull/3238#issuecomment-539578433 | https://api.github.com/repos/pydata/xarray/issues/3238 | MDEyOklzc3VlQ29tbWVudDUzOTU3ODQzMw== | jhamman 2443309 | 2019-10-08T15:49:46Z | 2019-10-08T15:49:46Z | MEMBER | @keewis - I'm wondering if it would be worth merging this in its current state and leaving the rest of the checklist for a follow up PR? No harm in working incrementally on this. We just need to add a note in |
{ "total_count": 1, "+1": 1, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
tests for arrays with units 484015016 | |
533181017 | https://github.com/pydata/xarray/pull/3238#issuecomment-533181017 | https://api.github.com/repos/pydata/xarray/issues/3238 | MDEyOklzc3VlQ29tbWVudDUzMzE4MTAxNw== | max-sixty 5635139 | 2019-09-19T15:20:01Z | 2019-09-19T15:20:01Z | MEMBER | In general we've tried to make |
{ "total_count": 2, "+1": 2, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
tests for arrays with units 484015016 | |
533145925 | https://github.com/pydata/xarray/pull/3238#issuecomment-533145925 | https://api.github.com/repos/pydata/xarray/issues/3238 | MDEyOklzc3VlQ29tbWVudDUzMzE0NTkyNQ== | keewis 14808389 | 2019-09-19T14:04:12Z | 2019-09-19T14:04:12Z | MEMBER | I'm currently working on the tests for the comparison methods ( |
{ "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 | |
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 | |
532325585 | https://github.com/pydata/xarray/pull/3238#issuecomment-532325585 | https://api.github.com/repos/pydata/xarray/issues/3238 | MDEyOklzc3VlQ29tbWVudDUzMjMyNTU4NQ== | keewis 14808389 | 2019-09-17T17:41:13Z | 2019-09-17T17:41:13Z | MEMBER | I'm not sure where to put this, so I'll post this here. While working on the numpy methods part and using any of the pint versions implement
Both the method and the function work fine with current master. |
{ "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 | |
531606435 | https://github.com/pydata/xarray/pull/3238#issuecomment-531606435 | https://api.github.com/repos/pydata/xarray/issues/3238 | MDEyOklzc3VlQ29tbWVudDUzMTYwNjQzNQ== | keewis 14808389 | 2019-09-15T22:53:38Z | 2019-09-15T22:53:38Z | MEMBER | me hitting that issue is probably a bug in how |
{ "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 | |
531606126 | https://github.com/pydata/xarray/pull/3238#issuecomment-531606126 | https://api.github.com/repos/pydata/xarray/issues/3238 | MDEyOklzc3VlQ29tbWVudDUzMTYwNjEyNg== | keewis 14808389 | 2019-09-15T22:48:30Z | 2019-09-15T22:48:30Z | MEMBER | I'm not sure whether that belongs into hgrecco/pint#882, so I'll ask this here: In the case of
|
{ "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 | |
531604369 | https://github.com/pydata/xarray/pull/3238#issuecomment-531604369 | https://api.github.com/repos/pydata/xarray/issues/3238 | MDEyOklzc3VlQ29tbWVudDUzMTYwNDM2OQ== | keewis 14808389 | 2019-09-15T22:21:56Z | 2019-09-15T22:21:56Z | MEMBER | yeah, well, I can create that index outside of pytest with
|
{ "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 | |
531603304 | https://github.com/pydata/xarray/pull/3238#issuecomment-531603304 | https://api.github.com/repos/pydata/xarray/issues/3238 | MDEyOklzc3VlQ29tbWVudDUzMTYwMzMwNA== | keewis 14808389 | 2019-09-15T22:03:51Z | 2019-09-15T22:03:51Z | MEMBER | About the indexing: this might have been accidental (or a bug in pandas) and is probably a bad idea, but do you think it might be worth to somehow actively trigger this behavior in |
{ "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 | |
531602330 | https://github.com/pydata/xarray/pull/3238#issuecomment-531602330 | https://api.github.com/repos/pydata/xarray/issues/3238 | MDEyOklzc3VlQ29tbWVudDUzMTYwMjMzMA== | keewis 14808389 | 2019-09-15T21:48:40Z | 2019-09-15T21:48:40Z | MEMBER | I like your approach because it avoids all those issues, but stripping the units might be a surprise. Then again, what does a function named |
{ "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 | |
531599184 | https://github.com/pydata/xarray/pull/3238#issuecomment-531599184 | https://api.github.com/repos/pydata/xarray/issues/3238 | MDEyOklzc3VlQ29tbWVudDUzMTU5OTE4NA== | keewis 14808389 | 2019-09-15T21:03:51Z | 2019-09-15T21:03:51Z | MEMBER | I tried adding tests for |
{ "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 | |
527684331 | https://github.com/pydata/xarray/pull/3238#issuecomment-527684331 | https://api.github.com/repos/pydata/xarray/issues/3238 | MDEyOklzc3VlQ29tbWVudDUyNzY4NDMzMQ== | keewis 14808389 | 2019-09-03T23:57:11Z | 2019-09-04T15:35:58Z | MEMBER | After digging a little bit more, I think the reason why Also, it seems that because pint = pytest.importorskip("pint") ureg = pint.UnitRegistry() @pytest.mark.xfail def test_indexing_fail(): array = np.linspace(1, 2, 20) * ureg.m x = np.arange(len(array)) * ureg.s data_array = xr.DataArray(data=array, coords={"x": x}, dims=["x"]) with pytest.raises(KeyError): data_array.sel(x=np.array([13, 5, 9]) * ureg.m) @pytest.mark.filterwarnings("error:::pint[.*]") def test_indexing_pass(): array = np.linspace(1, 2, 20) * ureg.m x = np.arange(len(array)) * ureg.s data_array = xr.DataArray(data=array, coords={"x": x}, dims=["x"]) with pytest.raises(KeyError): data_array.sel(x=np.array([13, 5, 9]) * ureg.m) ``` Note: the only difference between the two is the decorator. |
{ "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 | |
527244993 | https://github.com/pydata/xarray/pull/3238#issuecomment-527244993 | https://api.github.com/repos/pydata/xarray/issues/3238 | MDEyOklzc3VlQ29tbWVudDUyNzI0NDk5Mw== | keewis 14808389 | 2019-09-02T21:24:08Z | 2019-09-02T21:24:08Z | MEMBER | It seems the reason for both 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 | |
527236743 | https://github.com/pydata/xarray/pull/3238#issuecomment-527236743 | https://api.github.com/repos/pydata/xarray/issues/3238 | MDEyOklzc3VlQ29tbWVudDUyNzIzNjc0Mw== | keewis 14808389 | 2019-09-02T20:17:36Z | 2019-09-02T21:05:13Z | MEMBER |
Indexing: when I wrote "indexing works" I meant that my tests for
|
{ "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 | |
526955510 | https://github.com/pydata/xarray/pull/3238#issuecomment-526955510 | https://api.github.com/repos/pydata/xarray/issues/3238 | MDEyOklzc3VlQ29tbWVudDUyNjk1NTUxMA== | keewis 14808389 | 2019-09-01T21:47:42Z | 2019-09-01T21:47:42Z | MEMBER | @jthielen: I tried my tests (those that are currently written) with your PR to hgrecco/pint#764. From the ones I have been using, As I'm not too content with it: could someone have a look at the way they are written? If there are any serious problems, it might be easier to correct them now and I can keep them in mind for new tests. Lastly, a status report: Assuming there are no bugs in my tests and using andrewgsavage/pint#6, there are some issues with |
{ "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 | |
524100935 | https://github.com/pydata/xarray/pull/3238#issuecomment-524100935 | https://api.github.com/repos/pydata/xarray/issues/3238 | MDEyOklzc3VlQ29tbWVudDUyNDEwMDkzNQ== | keewis 14808389 | 2019-08-22T22:24:57Z | 2019-08-22T22:24:57Z | MEMBER | ah, okay, that makes sense. I will leave the |
{ "total_count": 1, "+1": 1, "-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 | |
524092704 | https://github.com/pydata/xarray/pull/3238#issuecomment-524092704 | https://api.github.com/repos/pydata/xarray/issues/3238 | MDEyOklzc3VlQ29tbWVudDUyNDA5MjcwNA== | keewis 14808389 | 2019-08-22T21:54:19Z | 2019-08-22T21:54:19Z | MEMBER | @jthielen: thanks, I will look at these when I have the time. Could you take a look at the failing test for 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 | |
523926972 | https://github.com/pydata/xarray/pull/3238#issuecomment-523926972 | https://api.github.com/repos/pydata/xarray/issues/3238 | MDEyOklzc3VlQ29tbWVudDUyMzkyNjk3Mg== | max-sixty 5635139 | 2019-08-22T14:19:37Z | 2019-08-22T14:19:37Z | MEMBER | Great! This is going to be exciting. Ping here for any questions!
V easy - add to |
{ "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 7