issue_comments
12 rows where issue = 1222609313 sorted by updated_at descending
This data as json, CSV (advanced)
Suggested facets: reactions, created_at (date), updated_at (date)
issue 1
- netCDF + lazy backend: Error when sel is used with slice, reverse arrange · 12 ✖
id | html_url | issue_url | node_id | user | created_at | updated_at ▲ | author_association | body | reactions | performed_via_github_app | issue |
---|---|---|---|---|---|---|---|---|---|---|---|
1303038334 | https://github.com/pydata/xarray/issues/6560#issuecomment-1303038334 | https://api.github.com/repos/pydata/xarray/issues/6560 | IC_kwDOAMm_X85Nqsl- | jesieleo 90036937 | 2022-11-04T06:42:18Z | 2022-11-04T06:43:01Z | NONE | First of all, thank you for your help @dcherian @max-sixty . I finally reproduced this problem.
I put the ``` import numpy as np import xarray as xr ds = xr.Dataset( { "z": ( ("time", "isoBaricInhPa", "latitude", "longitude"), np.ones((1, 5, 721, 1440)), ) }, coords={"latitude": np.linspace(-90, 90, 721)}, ).to_netcdf("test.nc") ds = xr.open_dataset('test.nc') a = ds.isel(time=[0], isoBaricInhPa=1).z[:, ::10, ::10][:, ::-1, :] print(a.sizes) print(a.shape) print(a)
|
{ "total_count": 1, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 1 } |
netCDF + lazy backend: Error when sel is used with slice, reverse arrange 1222609313 | |
1118866758 | https://github.com/pydata/xarray/issues/6560#issuecomment-1118866758 | https://api.github.com/repos/pydata/xarray/issues/6560 | IC_kwDOAMm_X85CsI1G | max-sixty 5635139 | 2022-05-05T17:34:51Z | 2022-05-05T17:34:51Z | MEMBER | @dcherian thanks a lot for looking into this. @jesieleo thanks for your patience in us finding the bug. |
{ "total_count": 1, "+1": 1, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
netCDF + lazy backend: Error when sel is used with slice, reverse arrange 1222609313 | |
1118690026 | https://github.com/pydata/xarray/issues/6560#issuecomment-1118690026 | https://api.github.com/repos/pydata/xarray/issues/6560 | IC_kwDOAMm_X85Crdrq | dcherian 2448579 | 2022-05-05T15:21:22Z | 2022-05-05T15:21:40Z | MEMBER | OK it has to do with the lazy backend. Calling Though I still can't make a minimal example. The example below works fine.
|
{ "total_count": 1, "+1": 1, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
netCDF + lazy backend: Error when sel is used with slice, reverse arrange 1222609313 | |
1118682989 | https://github.com/pydata/xarray/issues/6560#issuecomment-1118682989 | https://api.github.com/repos/pydata/xarray/issues/6560 | IC_kwDOAMm_X85Crb9t | dcherian 2448579 | 2022-05-05T15:16:33Z | 2022-05-05T15:16:52Z | MEMBER | OK turns out my attempts at a minimal example didn't work. There's some bug here (on xarray main)
1. the size of @jesieleo here's how I tried to create a "minimal example" ``` python import xarray as xr import numpy as np ds = xr.Dataset( { "z": ( ("time", "isoBaricInhPa", "latitude", "longitude"), np.ones((1, 5, 721, 1440)), # use numpy.ones to create array of same shape. ) }, coords={"latitude": np.linspace(-90, 90, 721)}, ) ds.isel(isoBaricInhPa=1).z[:, ::10, :][:, ::-1, :] ``` Though this doesn't replicate it! |
{ "total_count": 1, "+1": 1, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
netCDF + lazy backend: Error when sel is used with slice, reverse arrange 1222609313 | |
1118482764 | https://github.com/pydata/xarray/issues/6560#issuecomment-1118482764 | https://api.github.com/repos/pydata/xarray/issues/6560 | IC_kwDOAMm_X85CqrFM | jesieleo 90036937 | 2022-05-05T12:20:59Z | 2022-05-05T12:20:59Z | NONE |
Since I don't know how the grib file is generated, I can't reproduce it. But the data I use is the ECWMF official website data converted by engine='cfgrib', this problem may be caused by the 'cfgrib' engine, although it is not very big wrong, but it's a hidden danger. I'm not competent enough, sorry to bother you. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
netCDF + lazy backend: Error when sel is used with slice, reverse arrange 1222609313 | |
1117678722 | https://github.com/pydata/xarray/issues/6560#issuecomment-1117678722 | https://api.github.com/repos/pydata/xarray/issues/6560 | IC_kwDOAMm_X85CnmyC | max-sixty 5635139 | 2022-05-04T18:40:41Z | 2022-05-04T18:40:41Z | MEMBER |
Don't bundle data — build a new example from a basic array and demonstrate the bug. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
netCDF + lazy backend: Error when sel is used with slice, reverse arrange 1222609313 | |
1116993532 | https://github.com/pydata/xarray/issues/6560#issuecomment-1116993532 | https://api.github.com/repos/pydata/xarray/issues/6560 | IC_kwDOAMm_X85Ck_f8 | jesieleo 90036937 | 2022-05-04T07:09:32Z | 2022-05-04T07:09:32Z | NONE |
I packed them in one |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
netCDF + lazy backend: Error when sel is used with slice, reverse arrange 1222609313 | |
1116363332 | https://github.com/pydata/xarray/issues/6560#issuecomment-1116363332 | https://api.github.com/repos/pydata/xarray/issues/6560 | IC_kwDOAMm_X85CilpE | max-sixty 5635139 | 2022-05-03T17:31:55Z | 2022-05-03T17:31:55Z | MEMBER | What is |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
netCDF + lazy backend: Error when sel is used with slice, reverse arrange 1222609313 | |
1115771909 | https://github.com/pydata/xarray/issues/6560#issuecomment-1115771909 | https://api.github.com/repos/pydata/xarray/issues/6560 | IC_kwDOAMm_X85CgVQF | jesieleo 90036937 | 2022-05-03T06:15:50Z | 2022-05-03T06:17:44Z | NONE |
Ok ,thanks. I try to simplify the problem on an array
|
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
netCDF + lazy backend: Error when sel is used with slice, reverse arrange 1222609313 | |
1115423953 | https://github.com/pydata/xarray/issues/6560#issuecomment-1115423953 | https://api.github.com/repos/pydata/xarray/issues/6560 | IC_kwDOAMm_X85CfATR | max-sixty 5635139 | 2022-05-02T22:16:06Z | 2022-05-02T22:16:06Z | MEMBER | OK — I would like to make your experience GitHub a good one! It's a magical place.
But no, this is not sufficient — can you show your problem on an array like |
{ "total_count": 1, "+1": 1, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
netCDF + lazy backend: Error when sel is used with slice, reverse arrange 1222609313 | |
1114655218 | https://github.com/pydata/xarray/issues/6560#issuecomment-1114655218 | https://api.github.com/repos/pydata/xarray/issues/6560 | IC_kwDOAMm_X85CcEny | jesieleo 90036937 | 2022-05-02T09:19:24Z | 2022-05-02T09:57:55Z | NONE | Sorry, this is the first time I use Github to report a problem, I don't understand it very well, it seems that I need to learn more. I have added a zip dile with a .ipynb file , don't know if it is ok? ------------------ 原始邮件 ------------------ 发件人: "Maximilian @.>; 发送时间: 2022年5月2日(星期一) 下午4:32 收件人: @.>; 抄送: @.>; @.>; 主题: Re: [pydata/xarray] error when using .sel() and [:, ::10, ::10][:, ::-1, :] (Issue #6560) @jesieleo — I'm probably being unclear, and I'm sure you're well-intentioned, but this & the previous issues aren't constructive for either of us so far. In the politest possible way: please make an issue that is complete and "copy & pastes into an IPython prompt or Binder notebook, returning the result.". You cannot reference data that is only on your computer. This will require work from your end to take the example you have there, and reduce it to the bare minimum. — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***> |
{ "total_count": 1, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 1 } |
netCDF + lazy backend: Error when sel is used with slice, reverse arrange 1222609313 | |
1114620018 | https://github.com/pydata/xarray/issues/6560#issuecomment-1114620018 | https://api.github.com/repos/pydata/xarray/issues/6560 | IC_kwDOAMm_X85Cb8By | max-sixty 5635139 | 2022-05-02T08:32:25Z | 2022-05-02T08:32:25Z | MEMBER | @jesieleo — I'm probably being unclear, and I'm sure you're well-intentioned, but this & the previous issues aren't constructive for either of us so far. In the politest possible way: please make an issue that is complete and "copy & pastes into an IPython prompt or Binder notebook, returning the result.". You cannot reference data that is only on your computer. This will require work from your end to take the example you have there, and reduce it to the bare minimum. |
{ "total_count": 1, "+1": 1, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
netCDF + lazy backend: Error when sel is used with slice, reverse arrange 1222609313 |
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 3