issue_comments
33 rows where issue = 241578773 and user = 6815844 sorted by updated_at descending
This data as json, CSV (advanced)
Suggested facets: created_at (date), updated_at (date)
issue 1
- WIP: indexing with broadcasting · 33 ✖
id | html_url | issue_url | node_id | user | created_at | updated_at ▲ | author_association | body | reactions | performed_via_github_app | issue |
---|---|---|---|---|---|---|---|---|---|---|---|
337805095 | https://github.com/pydata/xarray/pull/1473#issuecomment-337805095 | https://api.github.com/repos/pydata/xarray/issues/1473 | MDEyOklzc3VlQ29tbWVudDMzNzgwNTA5NQ== | fujiisoup 6815844 | 2017-10-19T05:40:57Z | 2017-10-19T05:40:57Z | MEMBER | I'm happy with this :) |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
WIP: indexing with broadcasting 241578773 | |
335319183 | https://github.com/pydata/xarray/pull/1473#issuecomment-335319183 | https://api.github.com/repos/pydata/xarray/issues/1473 | MDEyOklzc3VlQ29tbWVudDMzNTMxOTE4Mw== | fujiisoup 6815844 | 2017-10-09T23:45:55Z | 2017-10-10T12:12:04Z | MEMBER | @shoyer, thanks for your review.
OK. It makes sense also for me. Merging your PR.
Actually, the vectorized label-indexing currently does not work almost entirely with
works as expected,
fail without appropriate error messages
destructs the MultiIndex structure silently. I will add better Exceptions later today. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
WIP: indexing with broadcasting 241578773 | |
334024556 | https://github.com/pydata/xarray/pull/1473#issuecomment-334024556 | https://api.github.com/repos/pydata/xarray/issues/1473 | MDEyOklzc3VlQ29tbWVudDMzNDAyNDU1Ng== | fujiisoup 6815844 | 2017-10-04T01:20:13Z | 2017-10-04T01:20:13Z | MEMBER | @jhamman Thanks for the review (and sorry for my late reply). I made some modifications. @shoyer Do you have further comments about coordinate confliction? Limitations of the current implementation are
+ Coordinate confliction and attachment related to |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
WIP: indexing with broadcasting 241578773 | |
331920149 | https://github.com/pydata/xarray/pull/1473#issuecomment-331920149 | https://api.github.com/repos/pydata/xarray/issues/1473 | MDEyOklzc3VlQ29tbWVudDMzMTkyMDE0OQ== | fujiisoup 6815844 | 2017-09-25T15:35:03Z | 2017-09-25T15:35:22Z | MEMBER | I think it's ready. I appreciate any further comments. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
WIP: indexing with broadcasting 241578773 | |
331480985 | https://github.com/pydata/xarray/pull/1473#issuecomment-331480985 | https://api.github.com/repos/pydata/xarray/issues/1473 | MDEyOklzc3VlQ29tbWVudDMzMTQ4MDk4NQ== | fujiisoup 6815844 | 2017-09-22T15:32:58Z | 2017-09-22T15:32:58Z | MEMBER | I think it would be better to update |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
WIP: indexing with broadcasting 241578773 | |
330168943 | https://github.com/pydata/xarray/pull/1473#issuecomment-330168943 | https://api.github.com/repos/pydata/xarray/issues/1473 | MDEyOklzc3VlQ29tbWVudDMzMDE2ODk0Mw== | fujiisoup 6815844 | 2017-09-18T09:27:38Z | 2017-09-18T09:27:38Z | MEMBER | Another case that might be confusing, ```python import numpy as np import xarray as xr da = xr.DataArray(np.random.randn(3), dims=['x'], coords={'x': ['a', 'b', 'c']}) index_ds = xr.Dataset({}, coords={'x': [0, 1]}) this results in the coordinate conflictionda.isel(x=index_ds['x'])
|
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
WIP: indexing with broadcasting 241578773 | |
330133651 | https://github.com/pydata/xarray/pull/1473#issuecomment-330133651 | https://api.github.com/repos/pydata/xarray/issues/1473 | MDEyOklzc3VlQ29tbWVudDMzMDEzMzY1MQ== | fujiisoup 6815844 | 2017-09-18T05:49:26Z | 2017-09-18T05:49:26Z | MEMBER | For the second issue pointed out in this comment,
I noticed it is due to the somewhat irregular ```python In [1]: import numpy as np ...: import xarray as xr ...: import pandas as pd ...: ...: midx = pd.MultiIndex.from_product([list('abc'), [0, 1]], ...: names=('one', 'two')) ...: # midx is automatically converted to a coordinate ...: xr.DataArray(midx[:3], dims='z') ...: Out[1]: <xarray.DataArray (z: 3)> array([('a', 0), ('a', 1), ('b', 0)], dtype=object) Coordinates: * z (z) MultiIndex - one (z) object 'a' 'a' 'b' - two (z) int64 0 1 0 In [2]: # If a coordinate is explicitly specified, midx will be a data ...: xr.DataArray(midx[:3], dims='z', coords={'z': [0, 1, 2]}) ...: Out[2]: <xarray.DataArray (z: 3)> array([('a', 0), ('a', 1), ('b', 0)], dtype=object) Coordinates: * z (z) int64 0 1 2 ``` I added tests for this case. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
WIP: indexing with broadcasting 241578773 | |
330048656 | https://github.com/pydata/xarray/pull/1473#issuecomment-330048656 | https://api.github.com/repos/pydata/xarray/issues/1473 | MDEyOklzc3VlQ29tbWVudDMzMDA0ODY1Ng== | fujiisoup 6815844 | 2017-09-17T14:08:28Z | 2017-09-17T14:08:35Z | MEMBER |
OK. I adopt |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
WIP: indexing with broadcasting 241578773 | |
330022824 | https://github.com/pydata/xarray/pull/1473#issuecomment-330022824 | https://api.github.com/repos/pydata/xarray/issues/1473 | MDEyOklzc3VlQ29tbWVudDMzMDAyMjgyNA== | fujiisoup 6815844 | 2017-09-17T05:42:01Z | 2017-09-17T05:42:01Z | MEMBER | How about the following case?
However,
I would like to add an additional rule to take care of the first case, which might be valid only for DataArray
+ If |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
WIP: indexing with broadcasting 241578773 | |
330018569 | https://github.com/pydata/xarray/pull/1473#issuecomment-330018569 | https://api.github.com/repos/pydata/xarray/issues/1473 | MDEyOklzc3VlQ29tbWVudDMzMDAxODU2OQ== | fujiisoup 6815844 | 2017-09-17T04:17:28Z | 2017-09-17T04:17:28Z | MEMBER | Sorry for my late reply, and thanks for the information.
It sounds great if we could use preexisting criteria (and maybe logic also). I will look inside xarray's merge logic deeply. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
WIP: indexing with broadcasting 241578773 | |
328508165 | https://github.com/pydata/xarray/pull/1473#issuecomment-328508165 | https://api.github.com/repos/pydata/xarray/issues/1473 | MDEyOklzc3VlQ29tbWVudDMyODUwODE2NQ== | fujiisoup 6815844 | 2017-09-11T12:02:25Z | 2017-09-11T12:02:25Z | MEMBER |
It's not yet clear to me either. I think, in such a case, we should choose the simplest rule so that we can explain it easily and we could add more rule later if necessary. I think indexer's coordinates should not conflict is the simplest. The other end might be we don't care the indexer's coordinates, but I like the previous one. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
WIP: indexing with broadcasting 241578773 | |
328403754 | https://github.com/pydata/xarray/pull/1473#issuecomment-328403754 | https://api.github.com/repos/pydata/xarray/issues/1473 | MDEyOklzc3VlQ29tbWVudDMyODQwMzc1NA== | fujiisoup 6815844 | 2017-09-11T03:04:05Z | 2017-09-11T03:04:05Z | MEMBER | Thank you for review.
I thought we have agreed to simply neglect the coordinate conflict (comment). Yes, but now I agree to raise an IndexError is clearer for users. I will revert it.
I forgot to consider MultiIndex. I will fix it. (May be later this week.) |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
WIP: indexing with broadcasting 241578773 | |
327802435 | https://github.com/pydata/xarray/pull/1473#issuecomment-327802435 | https://api.github.com/repos/pydata/xarray/issues/1473 | MDEyOklzc3VlQ29tbWVudDMyNzgwMjQzNQ== | fujiisoup 6815844 | 2017-09-07T13:40:30Z | 2017-09-07T13:40:30Z | MEMBER | Added, with some code clean-ups. (Although I prepared tests for it), I agree that the boolean indexing with a different dimension name is a rare use case But I personally think this rule adds additional complexity.
From an analogy of np.ndarray indexing
I think we should recommend |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
WIP: indexing with broadcasting 241578773 | |
327194050 | https://github.com/pydata/xarray/pull/1473#issuecomment-327194050 | https://api.github.com/repos/pydata/xarray/issues/1473 | MDEyOklzc3VlQ29tbWVudDMyNzE5NDA1MA== | fujiisoup 6815844 | 2017-09-05T14:31:28Z | 2017-09-05T14:31:28Z | MEMBER | Thank you for the careful review. I updated most part you pointed out, but not all. I will finish it up tomorrow. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
WIP: indexing with broadcasting 241578773 | |
326857965 | https://github.com/pydata/xarray/pull/1473#issuecomment-326857965 | https://api.github.com/repos/pydata/xarray/issues/1473 | MDEyOklzc3VlQ29tbWVudDMyNjg1Nzk2NQ== | fujiisoup 6815844 | 2017-09-04T03:24:49Z | 2017-09-04T03:24:49Z | MEMBER |
OK. Done.
I think the condition is something like |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
WIP: indexing with broadcasting 241578773 | |
326778667 | https://github.com/pydata/xarray/pull/1473#issuecomment-326778667 | https://api.github.com/repos/pydata/xarray/issues/1473 | MDEyOklzc3VlQ29tbWVudDMyNjc3ODY2Nw== | fujiisoup 6815844 | 2017-09-03T01:30:49Z | 2017-09-03T02:00:46Z | MEMBER |
Yes, this is another difference, but if the indexer of
I thought this when working with the power-user example,
As this example,
I considered the In such a use case, it would be better for
I agree. I also would like to try that, but it might be a bit tough and it would be better to do after the next release. Maybe I need to switch to much easier task in this example. Do you have any suggestion? |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
WIP: indexing with broadcasting 241578773 | |
326753554 | https://github.com/pydata/xarray/pull/1473#issuecomment-326753554 | https://api.github.com/repos/pydata/xarray/issues/1473 | MDEyOklzc3VlQ29tbWVudDMyNjc1MzU1NA== | fujiisoup 6815844 | 2017-09-02T16:10:59Z | 2017-09-02T16:10:59Z | MEMBER | API question.
My preference is to make |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
WIP: indexing with broadcasting 241578773 | |
326334294 | https://github.com/pydata/xarray/pull/1473#issuecomment-326334294 | https://api.github.com/repos/pydata/xarray/issues/1473 | MDEyOklzc3VlQ29tbWVudDMyNjMzNDI5NA== | fujiisoup 6815844 | 2017-08-31T15:36:49Z | 2017-08-31T15:39:24Z | MEMBER |
I think I am approaching. See docs for the detail,
but the essential change of this PR is that now indexing ( If indexers have no named dimension (e.g. np.ndarray, integer, slice), then the indexing behaves exactly the same way to the current version. So this change should be compatible almost all the existing codes. Now all the existing tests passed and I added many test cases as far as I think of. However, I would like to ask members to use this branch for your daily work and make sure there is no inconvenience, because indexing is very fundamental and a single bug would affect every user significantly. Any comments or thoughts are welcome. (I refactored indexing.rst largely according to this change. I would also appreciate very much if anyone could point out some confusing/unnatural sentences.) I am looking forward to seeing it in v.0.10 :) |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
WIP: indexing with broadcasting 241578773 | |
325141121 | https://github.com/pydata/xarray/pull/1473#issuecomment-325141121 | https://api.github.com/repos/pydata/xarray/issues/1473 | MDEyOklzc3VlQ29tbWVudDMyNTE0MTEyMQ== | fujiisoup 6815844 | 2017-08-26T15:59:18Z | 2017-08-26T16:06:11Z | MEMBER |
OK. I agree. It's might be the best. I will update the code. But I can't yet imagine all the cases that are incompatible the existing code. I am just wondering if we could bring such a sudden change without warning. Do we need API change warning period? |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
WIP: indexing with broadcasting 241578773 | |
321213528 | https://github.com/pydata/xarray/pull/1473#issuecomment-321213528 | https://api.github.com/repos/pydata/xarray/issues/1473 | MDEyOklzc3VlQ29tbWVudDMyMTIxMzUyOA== | fujiisoup 6815844 | 2017-08-09T10:10:58Z | 2017-08-09T11:10:14Z | MEMBER | @shoyer
Agreed. I changed the code not to overwrite coordinate.
My current implementation does this, but I am still worrying about even in this situation there will be a similar unexpected behavior, e.g. because an unexpected coordinate is attached in previous indexing, the coordinate to be attached would be silently neglected. I think we may need a careful API decision.
I am currently thinking
(assuming |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
WIP: indexing with broadcasting 241578773 | |
321119003 | https://github.com/pydata/xarray/pull/1473#issuecomment-321119003 | https://api.github.com/repos/pydata/xarray/issues/1473 | MDEyOklzc3VlQ29tbWVudDMyMTExOTAwMw== | fujiisoup 6815844 | 2017-08-09T00:32:46Z | 2017-08-09T00:32:46Z | MEMBER | Another case I am wondering is when indexing-DataArray has the same name but different valued coordinate, ```python In [1]: import numpy as np ...: import xarray as xr ...: ...: da = xr.DataArray(np.arange(3 * 2).reshape(3, 2), dims=['x', 'y'], ...: coords={'x': [0, 1, 2], 'y': ['a', 'b']}) ...: da # indexed DataArray ...: Out[1]: <xarray.DataArray (x: 3, y: 2)> array([[0, 1], [2, 3], [4, 5]]) Coordinates: * x (x) int64 0 1 2 * y (y) <U1 'a' 'b' In [2]: ind = xr.DataArray([2, 1], dims=['x'], coords={'x': [0.1, 0.2]}) ...: ind # indexing DataArray. This also has 'x' ...: Out[2]: <xarray.DataArray (x: 2)> array([2, 1]) Coordinates: * x (x) float64 0.1 0.2 In [3]: da.isel(x=ind.variable) ...: Out[3]: <xarray.DataArray (x: 2, y: 2)> array([[4, 5], [2, 3]]) Coordinates: * x (x) int64 2 1 * y (y) <U1 'a' 'b' In [4]: da.isel(x=ind) # Overwrite da['x'] by ind['x'] ...: Out[4]: <xarray.DataArray (x: 2, y: 2)> array([[4, 5], [2, 3]]) Coordinates: * x (x) float64 0.1 0.2 * y (y) <U1 'a' 'b' ``` Currently, the original coordinate is overwritten by the indexer's coordinate, but it may cause an unintentional change of the coordinate values. May be we should keep the original coordinate in such a case or raise an Exception? |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
WIP: indexing with broadcasting 241578773 | |
321115367 | https://github.com/pydata/xarray/pull/1473#issuecomment-321115367 | https://api.github.com/repos/pydata/xarray/issues/1473 | MDEyOklzc3VlQ29tbWVudDMyMTExNTM2Nw== | fujiisoup 6815844 | 2017-08-09T00:06:10Z | 2017-08-09T00:06:10Z | MEMBER | I am wondering how the indexing by In my current implementation, it bahaves ```python In [1]: import numpy as np ...: import xarray as xr ...: ...: da = xr.DataArray(np.arange(3 * 2).reshape(3, 2), dims=['x', 'y'], ...: coords={'x': [0, 1, 2], 'y': ['a', 'b']}) ...: da ...: Out[1]: <xarray.DataArray (x: 3, y: 2)> array([[0, 1], [2, 3], [4, 5]]) Coordinates: * x (x) int64 0 1 2 * y (y) <U1 'a' 'b' In [2]: ind = xr.DataArray([2, 1], dims=['a'], ...: coords={'a': [0.1, 0.2], 'time': (('a', ), [10, 20])}) ...: ind # 'a': coordinate, 'time': non-dimension coordinate ...: Out[2]: <xarray.DataArray (a: 2)> array([2, 1]) Coordinates: * a (a) float64 0.1 0.2 time (a) int64 10 20 In [3]: da.isel(x=ind) Out[3]: <xarray.DataArray (a: 2, y: 2)> array([[4, 5], [2, 3]]) Coordinates: x (a) int64 2 1 * y (y) <U1 'a' 'b' * a (a) float64 0.1 0.2 ``` I think we should keep (indexed-version of the) original coordinate ( I am slightly worrying that after repetitive indexing the number of coordinates may unintentionally increase. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
WIP: indexing with broadcasting 241578773 | |
320493296 | https://github.com/pydata/xarray/pull/1473#issuecomment-320493296 | https://api.github.com/repos/pydata/xarray/issues/1473 | MDEyOklzc3VlQ29tbWVudDMyMDQ5MzI5Ng== | fujiisoup 6815844 | 2017-08-06T08:28:14Z | 2017-08-06T08:28:14Z | MEMBER | @shoyer Thanks for your help! I will take a look. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
WIP: indexing with broadcasting 241578773 | |
319028665 | https://github.com/pydata/xarray/pull/1473#issuecomment-319028665 | https://api.github.com/repos/pydata/xarray/issues/1473 | MDEyOklzc3VlQ29tbWVudDMxOTAyODY2NQ== | fujiisoup 6815844 | 2017-07-31T10:22:44Z | 2017-07-31T10:23:04Z | MEMBER | Thanks, @shoyer. I will take a look shortly.
Thanks. It's a great help!
I think a similar logic (flatten -> lookup -> reshape) will be necessary to improve |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
WIP: indexing with broadcasting 241578773 | |
318813583 | https://github.com/pydata/xarray/pull/1473#issuecomment-318813583 | https://api.github.com/repos/pydata/xarray/issues/1473 | MDEyOklzc3VlQ29tbWVudDMxODgxMzU4Mw== | fujiisoup 6815844 | 2017-07-29T08:26:30Z | 2017-07-29T08:26:30Z | MEMBER | @shoyer Thanks for the detailed review.
Yes. Actually, some backends seem to check something like |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
WIP: indexing with broadcasting 241578773 | |
317902607 | https://github.com/pydata/xarray/pull/1473#issuecomment-317902607 | https://api.github.com/repos/pydata/xarray/issues/1473 | MDEyOklzc3VlQ29tbWVudDMxNzkwMjYwNw== | fujiisoup 6815844 | 2017-07-25T23:29:10Z | 2017-07-25T23:29:10Z | MEMBER |
OK. Thanks for the suggestion. I'm slightly hesitating to deprecate this indexing in this PR. I guess it should go with another issue. (Some tests assume this indexing behavior.) |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
WIP: indexing with broadcasting 241578773 | |
317742791 | https://github.com/pydata/xarray/pull/1473#issuecomment-317742791 | https://api.github.com/repos/pydata/xarray/issues/1473 | MDEyOklzc3VlQ29tbWVudDMxNzc0Mjc5MQ== | fujiisoup 6815844 | 2017-07-25T13:48:12Z | 2017-07-25T13:48:12Z | MEMBER | @shoyer Thanks for the suggestion. As you suggested, I prepared our own indexer class. I think the codes became much cleaner. I struggled with the boolean index behavior,
In my current PR, the boolean index is simply converted to integer array by |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
WIP: indexing with broadcasting 241578773 | |
317247671 | https://github.com/pydata/xarray/pull/1473#issuecomment-317247671 | https://api.github.com/repos/pydata/xarray/issues/1473 | MDEyOklzc3VlQ29tbWVudDMxNzI0NzY3MQ== | fujiisoup 6815844 | 2017-07-23T11:51:00Z | 2017-07-23T11:51:00Z | MEMBER |
I am wondering what the cleanest design is.
Because the cases 3 and 4 you suggested are pretty exculsive, I tried to distinguish cases 1, 2, and 4 in |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
WIP: indexing with broadcasting 241578773 | |
317137217 | https://github.com/pydata/xarray/pull/1473#issuecomment-317137217 | https://api.github.com/repos/pydata/xarray/issues/1473 | MDEyOklzc3VlQ29tbWVudDMxNzEzNzIxNw== | fujiisoup 6815844 | 2017-07-21T23:54:38Z | 2017-07-21T23:54:38Z | MEMBER | Currently, this line in backends/rasterio_.py fails.
This is because that the new indexing logic converts integer-arrays into slices as much as possible, e.g.
However, other array wrappers seem to require the automatic slice conversion. As I am not familiar with rasterio, I will appreciate if anyone gives me a help. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
WIP: indexing with broadcasting 241578773 | |
317012255 | https://github.com/pydata/xarray/pull/1473#issuecomment-317012255 | https://api.github.com/repos/pydata/xarray/issues/1473 | MDEyOklzc3VlQ29tbWVudDMxNzAxMjI1NQ== | fujiisoup 6815844 | 2017-07-21T14:13:44Z | 2017-07-21T14:13:44Z | MEMBER |
I implemented Now some array-adaptors accepts orthogonal-indexers and other accepts broadcasted-indexers. I think it is a little confusing. Maybe clearer terminology is necessary? |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
WIP: indexing with broadcasting 241578773 | |
315746067 | https://github.com/pydata/xarray/pull/1473#issuecomment-315746067 | https://api.github.com/repos/pydata/xarray/issues/1473 | MDEyOklzc3VlQ29tbWVudDMxNTc0NjA2Nw== | fujiisoup 6815844 | 2017-07-17T12:49:46Z | 2017-07-17T12:50:55Z | MEMBER | @shoyer Thanks for your help.
Yes. Thanks to your patch, dask-based variable is now indexed fine. Some replies to your comments to the outdated codes.
+ multidimensional boolean indexer I will try to fit the other array wrappers, |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
WIP: indexing with broadcasting 241578773 | |
315593569 | https://github.com/pydata/xarray/pull/1473#issuecomment-315593569 | https://api.github.com/repos/pydata/xarray/issues/1473 | MDEyOklzc3VlQ29tbWVudDMxNTU5MzU2OQ== | fujiisoup 6815844 | 2017-07-16T08:19:11Z | 2017-07-16T08:19:11Z | MEMBER | I just realized that dask's indexing is limited, e.g. it does not support nd-array indexing.
I will try to make a work around this issue, but I am not very familiar with |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
WIP: indexing with broadcasting 241578773 | |
314718320 | https://github.com/pydata/xarray/pull/1473#issuecomment-314718320 | https://api.github.com/repos/pydata/xarray/issues/1473 | MDEyOklzc3VlQ29tbWVudDMxNDcxODMyMA== | fujiisoup 6815844 | 2017-07-12T10:13:48Z | 2017-07-12T10:13:48Z | MEMBER | Thanks @shoyer
I updated As you pointed out, we may need better Error message in here.
I guess we should raise our own |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
WIP: indexing with broadcasting 241578773 |
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