issues
2 rows where type = "issue" and user = 42008691 sorted by updated_at descending
This data as json, CSV (advanced)
Suggested facets: created_at (date), updated_at (date), closed_at (date)
id | node_id | number | title | user | state | locked | assignee | milestone | comments | created_at | updated_at ▲ | closed_at | author_association | active_lock_reason | draft | pull_request | body | reactions | performed_via_github_app | state_reason | repo | type |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1209745654 | I_kwDOAMm_X85IG0D2 | 6502 | Raise nicer error if passing a list of dimension names to transpose | fabienpaulot 42008691 | closed | 0 | 5 | 2022-04-20T14:08:05Z | 2022-10-04T18:22:54Z | 2022-10-04T18:22:54Z | NONE | What happened?Hello, in xarray 0.20.1, I am getting the following error
``` 868 """Depending on the setting of missing_dims, drop any dimensions from supplied_dims that 869 are not present in dims. 870 (...) 875 missing_dims : {"raise", "warn", "ignore"} 876 """ 878 if missing_dims == "raise": --> 879 supplied_dims_set = {val for val in supplied_dims if val is not ...} 880 invalid = supplied_dims_set - set(dims) 881 if invalid: TypeError: unhashable type: 'list' ``` What did you expect to happen?The expected result is ``` ds.transpose("y", "z", "x") <xarray.Dataset> Dimensions: (x: 1, y: 1, z: 1) Dimensions without coordinates: x, y, z Data variables: foo (y, z, x) int64 42 bar (y, z) int64 24 ``` Minimal Complete Verifiable ExampleNo response Relevant log outputNo response Anything else we need to know?No response Environment
INSTALLED VERSIONS
------------------
commit: None
python: 3.9.12 (main, Apr 5 2022, 06:56:58)
[GCC 7.5.0]
python-bits: 64
OS: Linux
OS-release: 3.10.0-1160.42.2.el7.x86_64
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: None
LANG: en_US
LOCALE: ('en_US', 'ISO8859-1')
libhdf5: 1.12.1
libnetcdf: 4.8.1
xarray: 0.20.1
pandas: 1.4.1
numpy: 1.21.5
scipy: 1.8.0
netCDF4: 1.5.7
pydap: None
h5netcdf: 999
h5py: 3.6.0
Nio: None
zarr: None
cftime: 1.5.1.1
nc_time_axis: 1.4.0
PseudoNetCDF: None
rasterio: None
cfgrib: None
iris: None
bottleneck: 1.3.4
dask: 2022.02.1
distributed: 2022.2.1
matplotlib: 3.5.1
cartopy: 0.18.0
seaborn: 0.11.2
numbagg: None
fsspec: 2022.02.0
cupy: None
pint: 0.18
sparse: 0.13.0
setuptools: 61.2.0
pip: 21.2.4
conda: None
pytest: None
IPython: 8.2.0
sphinx: None
|
{ "url": "https://api.github.com/repos/pydata/xarray/issues/6502/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
completed | xarray 13221727 | issue | ||||||
436311057 | MDU6SXNzdWU0MzYzMTEwNTc= | 2915 | Plotting tripolar dataset in xarray | fabienpaulot 42008691 | closed | 0 | 4 | 2019-04-23T17:44:33Z | 2019-04-23T20:16:56Z | 2019-04-23T20:16:56Z | NONE | I am trying to plot a tripolar grid dataset using xarray/cartopy. I can plot it fine using matplotlib/cartopy ds = xr.open_dataset('ocean_hgrid.nc') xcntr = ds['x'][1::2,1::2] ycntr = ds['y'][1::2,1::2] test=xr.open_dataset('xarray_test.nc') ax = plt.axes(projection=proj) cs=plt.contourf(xcntr,ycntr,test['nh4_stf'],transform=data_crs,cmap='coolwarm',vmin=-4.5e-9,vmax=4.5e-9) plt.colorbar(cs) I would like to achieve the same result in xarray. I have tried the following proj=ccrs.PlateCarree() data_crs=ccrs.PlateCarree() ax = plt.axes(projection=proj) test['nh4_stf'].plot.contourf(ax=ax, transform=ccrs.PlateCarree()) and test['nh4_stf'].plot.pcolormesh(x=xcntr,y=ycntr,ax=ax,transform=ccrs.PlateCarree()) but this does not work (the second option crashes). Is there a way to pass xcntr,ycntr? datasets can be found on ftp://ftp.gfdl.noaa.gov/pub/Fabien.Paulot/xarray/ Thank you very much and congratulations to the developers for this amazing tool xarray.show_versions() INSTALLED VERSIONScommit: None python: 3.7.3 (default, Mar 27 2019, 22:11:17) [GCC 7.3.0] python-bits: 64 OS: Linux OS-release: 2.6.32-696.30.1.el6.x86_64 machine: x86_64 processor: x86_64 byteorder: little LC_ALL: None LANG: en_US LOCALE: en_US.ISO8859-1 libhdf5: 1.10.3 libnetcdf: 4.6.1 xarray: 0.11.3 pandas: 0.24.2 numpy: 1.16.2 scipy: 1.2.1 netCDF4: 1.4.2 pydap: None h5netcdf: None h5py: 2.8.0 Nio: None zarr: None cftime: 1.0.3.4 PseudonetCDF: None rasterio: None cfgrib: None iris: None bottleneck: None cyordereddict: None dask: 1.1.5 distributed: 1.27.0 matplotlib: 3.0.3 cartopy: 0.16.0 seaborn: 0.9.0 setuptools: 41.0.0 pip: 19.0.3 conda: None pytest: None IPython: 7.4.0 sphinx: 2.0.1 |
{ "url": "https://api.github.com/repos/pydata/xarray/issues/2915/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
completed | xarray 13221727 | issue |
Advanced export
JSON shape: default, array, newline-delimited, object
CREATE TABLE [issues] ( [id] INTEGER PRIMARY KEY, [node_id] TEXT, [number] INTEGER, [title] TEXT, [user] INTEGER REFERENCES [users]([id]), [state] TEXT, [locked] INTEGER, [assignee] INTEGER REFERENCES [users]([id]), [milestone] INTEGER REFERENCES [milestones]([id]), [comments] INTEGER, [created_at] TEXT, [updated_at] TEXT, [closed_at] TEXT, [author_association] TEXT, [active_lock_reason] TEXT, [draft] INTEGER, [pull_request] TEXT, [body] TEXT, [reactions] TEXT, [performed_via_github_app] TEXT, [state_reason] TEXT, [repo] INTEGER REFERENCES [repos]([id]), [type] TEXT ); CREATE INDEX [idx_issues_repo] ON [issues] ([repo]); CREATE INDEX [idx_issues_milestone] ON [issues] ([milestone]); CREATE INDEX [idx_issues_assignee] ON [issues] ([assignee]); CREATE INDEX [idx_issues_user] ON [issues] ([user]);