{"database": "github", "table": "issues", "is_view": false, "human_description_en": "where repo = 13221727, state = \"closed\" and user = 42008691 sorted by updated_at descending", "rows": [[1209745654, "I_kwDOAMm_X85IG0D2", 6502, "Raise nicer error if passing a list of dimension names to transpose", 42008691, "closed", 0, null, null, 5, "2022-04-20T14:08:05Z", "2022-10-04T18:22:54Z", "2022-10-04T18:22:54Z", "NONE", null, null, null, "### What happened?\r\n\r\nHello,\r\n\r\nin xarray 0.20.1, I am getting the following error\r\n\r\n`ds = xr.Dataset({\"foo\": ((\"x\", \"y\", \"z\"), [[[42]]]), \"bar\": ((\"y\", \"z\"), [[24]])})`\r\n\r\n`ds.transpose(\"y\", \"z\", \"x\")`\r\n\r\n\r\n```\r\n868 \"\"\"Depending on the setting of missing_dims, drop any dimensions from supplied_dims that\r\n    869 are not present in dims.\r\n    870 \r\n   (...)\r\n    875 missing_dims : {\"raise\", \"warn\", \"ignore\"}\r\n    876 \"\"\"\r\n    878 if missing_dims == \"raise\":\r\n--> 879     supplied_dims_set = {val for val in supplied_dims if val is not ...}\r\n    880     invalid = supplied_dims_set - set(dims)\r\n    881     if invalid:\r\n\r\nTypeError: unhashable type: 'list'\r\n```\r\n\r\n### What did you expect to happen?\r\n\r\nThe expected result is \r\n```\r\nds.transpose(\"y\", \"z\", \"x\")\r\n\r\n<xarray.Dataset>\r\nDimensions:  (x: 1, y: 1, z: 1)\r\nDimensions without coordinates: x, y, z\r\nData variables:\r\n    foo      (y, z, x) int64 42\r\n    bar      (y, z) int64 24\r\n```\r\n\r\n### Minimal Complete Verifiable Example\r\n\r\n_No response_\r\n\r\n### Relevant log output\r\n\r\n_No response_\r\n\r\n### Anything else we need to know?\r\n\r\n_No response_\r\n\r\n### Environment\r\n\r\n<details>\r\n\r\nINSTALLED VERSIONS\r\n------------------\r\ncommit: None\r\npython: 3.9.12 (main, Apr  5 2022, 06:56:58) \r\n[GCC 7.5.0]\r\npython-bits: 64\r\nOS: Linux\r\nOS-release: 3.10.0-1160.42.2.el7.x86_64\r\nmachine: x86_64\r\nprocessor: x86_64\r\nbyteorder: little\r\nLC_ALL: None\r\nLANG: en_US\r\nLOCALE: ('en_US', 'ISO8859-1')\r\nlibhdf5: 1.12.1\r\nlibnetcdf: 4.8.1\r\n\r\nxarray: 0.20.1\r\npandas: 1.4.1\r\nnumpy: 1.21.5\r\nscipy: 1.8.0\r\nnetCDF4: 1.5.7\r\npydap: None\r\nh5netcdf: 999\r\nh5py: 3.6.0\r\nNio: None\r\nzarr: None\r\ncftime: 1.5.1.1\r\nnc_time_axis: 1.4.0\r\nPseudoNetCDF: None\r\nrasterio: None\r\ncfgrib: None\r\niris: None\r\nbottleneck: 1.3.4\r\ndask: 2022.02.1\r\ndistributed: 2022.2.1\r\nmatplotlib: 3.5.1\r\ncartopy: 0.18.0\r\nseaborn: 0.11.2\r\nnumbagg: None\r\nfsspec: 2022.02.0\r\ncupy: None\r\npint: 0.18\r\nsparse: 0.13.0\r\nsetuptools: 61.2.0\r\npip: 21.2.4\r\nconda: None\r\npytest: None\r\nIPython: 8.2.0\r\nsphinx: None\r\n\r\n</details>\r\n", "{\"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}", null, "completed", 13221727, "issue"], [436311057, "MDU6SXNzdWU0MzYzMTEwNTc=", 2915, "Plotting tripolar dataset in xarray", 42008691, "closed", 0, null, null, 4, "2019-04-23T17:44:33Z", "2019-04-23T20:16:56Z", "2019-04-23T20:16:56Z", "NONE", null, null, null, "I am trying to plot a tripolar grid dataset using xarray/cartopy.\r\n\r\nI can plot it fine using matplotlib/cartopy\r\n\r\nds = xr.open_dataset('ocean_hgrid.nc')\r\nxcntr = ds['x'][1::2,1::2]\r\nycntr = ds['y'][1::2,1::2]\r\n\r\ntest=xr.open_dataset('xarray_test.nc')\r\n\r\nax = plt.axes(projection=proj)\r\ncs=plt.contourf(xcntr,ycntr,test['nh4_stf'],transform=data_crs,cmap='coolwarm',vmin=-4.5e-9,vmax=4.5e-9)\r\nplt.colorbar(cs)\r\n\r\nI would like to achieve the same result in xarray. I have tried the following\r\nproj=ccrs.PlateCarree()\r\ndata_crs=ccrs.PlateCarree()\r\nax = plt.axes(projection=proj)\r\ntest['nh4_stf'].plot.contourf(ax=ax, transform=ccrs.PlateCarree())\r\nand \r\ntest['nh4_stf'].plot.pcolormesh(x=xcntr,y=ycntr,ax=ax,transform=ccrs.PlateCarree())\r\n\r\nbut this does not work (the second option crashes).\r\nIs there a way to pass xcntr,ycntr?\r\n\r\ndatasets can be found on \r\nftp://ftp.gfdl.noaa.gov/pub/Fabien.Paulot/xarray/\r\n\r\nThank you very much and congratulations to the developers for this amazing tool\r\n\r\nxarray.show_versions()\r\n\r\nINSTALLED VERSIONS\r\n------------------\r\ncommit: None\r\npython: 3.7.3 (default, Mar 27 2019, 22:11:17) \r\n[GCC 7.3.0]\r\npython-bits: 64\r\nOS: Linux\r\nOS-release: 2.6.32-696.30.1.el6.x86_64\r\nmachine: x86_64\r\nprocessor: x86_64\r\nbyteorder: little\r\nLC_ALL: None\r\nLANG: en_US\r\nLOCALE: en_US.ISO8859-1\r\nlibhdf5: 1.10.3\r\nlibnetcdf: 4.6.1\r\n\r\nxarray: 0.11.3\r\npandas: 0.24.2\r\nnumpy: 1.16.2\r\nscipy: 1.2.1\r\nnetCDF4: 1.4.2\r\npydap: None\r\nh5netcdf: None\r\nh5py: 2.8.0\r\nNio: None\r\nzarr: None\r\ncftime: 1.0.3.4\r\nPseudonetCDF: None\r\nrasterio: None\r\ncfgrib: None\r\niris: None\r\nbottleneck: None\r\ncyordereddict: None\r\ndask: 1.1.5\r\ndistributed: 1.27.0\r\nmatplotlib: 3.0.3\r\ncartopy: 0.16.0\r\nseaborn: 0.9.0\r\nsetuptools: 41.0.0\r\npip: 19.0.3\r\nconda: None\r\npytest: None\r\nIPython: 7.4.0\r\nsphinx: 2.0.1\r\n", "{\"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}", null, "completed", 13221727, "issue"]], "truncated": false, "filtered_table_rows_count": 2, "expanded_columns": [], "expandable_columns": [[{"column": "repo", "other_table": "repos", "other_column": "id"}, "name"], [{"column": "milestone", "other_table": "milestones", "other_column": "id"}, "title"], [{"column": "assignee", "other_table": "users", "other_column": "id"}, "login"], [{"column": "user", "other_table": "users", "other_column": "id"}, "login"]], "columns": ["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"], "primary_keys": ["id"], "units": {}, "query": {"sql": "select 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 from issues where \"repo\" = :p0 and \"state\" = :p1 and \"user\" = :p2 order by updated_at desc limit 101", "params": {"p0": "13221727", "p1": "closed", "p2": "42008691"}}, "facet_results": {"state": {"name": "state", "type": "column", "hideable": false, "toggle_url": "/github/issues.json?repo=13221727&state=closed&user=42008691", "results": [{"value": "closed", "label": "closed", "count": 2, "toggle_url": "http://xarray-datasette.fly.dev/github/issues.json?repo=13221727&user=42008691", "selected": true}], "truncated": false}, "repo": {"name": "repo", "type": "column", "hideable": false, "toggle_url": "/github/issues.json?repo=13221727&state=closed&user=42008691", "results": [{"value": 13221727, "label": "xarray", "count": 2, "toggle_url": "http://xarray-datasette.fly.dev/github/issues.json?state=closed&user=42008691", "selected": true}], "truncated": false}, "type": {"name": "type", "type": "column", "hideable": false, "toggle_url": "/github/issues.json?repo=13221727&state=closed&user=42008691", "results": [{"value": "issue", "label": "issue", "count": 2, "toggle_url": "http://xarray-datasette.fly.dev/github/issues.json?repo=13221727&state=closed&user=42008691&type=issue", "selected": false}], "truncated": false}}, "suggested_facets": [{"name": "created_at", "type": "date", "toggle_url": "http://xarray-datasette.fly.dev/github/issues.json?repo=13221727&state=closed&user=42008691&_facet_date=created_at"}, {"name": "updated_at", "type": "date", "toggle_url": "http://xarray-datasette.fly.dev/github/issues.json?repo=13221727&state=closed&user=42008691&_facet_date=updated_at"}, {"name": "closed_at", "type": "date", "toggle_url": "http://xarray-datasette.fly.dev/github/issues.json?repo=13221727&state=closed&user=42008691&_facet_date=closed_at"}], "next": null, "next_url": null, "private": false, "allow_execute_sql": true, "query_ms": 36.83110499969189}