issues
2 rows where repo = 13221727, type = "issue" and user = 38673295 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 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
690268366 | MDU6SXNzdWU2OTAyNjgzNjY= | 4397 | Unstack non-index coordinate | kripnerl 38673295 | open | 0 | 2 | 2020-09-01T16:04:51Z | 2022-04-28T15:13:37Z | NONE | What happened: Non-indexed coordinates are not unstacked correctly. The example below should be self-explanatory. In the example below, I create a surface of the torus which should be used for some calculation for each point - therefore I have to use multi-index. The surface is given by the set of (R, Z) -- indexed by What you expected to happen:
Minimal Complete Verifiable Example: ```python theta = np.linspace(0, np.pi) R0 = 1 grid = xr.Dataset(coords={"R": ("pol_idx", R0 * np.cos(theta)), "Z": ("pol_idx", R0 * np.sin(theta)), "phi": np.linspace(0, 2*np.pi, N_phi_points, endpoint=False)})
grid = grid.stack(index=("pol_idx", "phi"))
Here I would like to perform some calculation on the prepared grid over the multiindex.grid = grid.unstack("index")
``` Comment: I am not sure whether this is a bug. However, I find this behaviour counterintuitive. Environment: Output of <tt>xr.show_versions()</tt>INSTALLED VERSIONS ------------------ commit: None python: 3.7.4 (default, Aug 13 2019, 20:35:49) [GCC 7.3.0] python-bits: 64 OS: Linux OS-release: 4.15.0-112-generic machine: x86_64 processor: x86_64 byteorder: little LC_ALL: None LANG: en_US.UTF-8 LOCALE: en_US.UTF-8 libhdf5: 1.10.4 libnetcdf: 4.6.1 xarray: 0.14.1 pandas: 0.25.1 numpy: 1.17.2 scipy: 1.3.1 netCDF4: 1.4.2 pydap: None h5netcdf: 0.7.4 h5py: 2.9.0 Nio: None zarr: None cftime: 1.0.4.2 nc_time_axis: None PseudoNetCDF: None rasterio: None cfgrib: None iris: None bottleneck: 1.2.1 dask: 2.5.2 distributed: 2.5.2 matplotlib: 3.1.3 cartopy: None seaborn: 0.9.0 numbagg: None setuptools: 41.4.0 pip: 19.2.3 conda: 4.8.3 pytest: 5.2.1 IPython: 7.8.0 sphinx: 2.2.0 |
{ "url": "https://api.github.com/repos/pydata/xarray/issues/4397/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
xarray 13221727 | issue | ||||||||
800678839 | MDU6SXNzdWU4MDA2Nzg4Mzk= | 4859 | Unicode strings unexpectedly transformed to byte strings upon `open_dataset` | kripnerl 38673295 | closed | 0 | 7 | 2021-02-03T20:34:27Z | 2021-11-20T17:58:34Z | 2021-11-20T17:58:34Z | NONE | What happened: Unicode coordinates convert to bytes after saving/loading with What you expected to happen: Load the string as a string. Minimal Complete Verifiable Example: ```python coils = np.array(["A", "B", "C", "D", "E"]) data = np.array([1 + 1j, 1 + 2j, 3j, 4j, 6j]) test_ds = xr.Dataset() test_ds.coords["coils"] = coils test_ds["data"] = ("coils", data) test_ds
test_ds.to_netcdf("test.nc", engine="h5netcdf") del test_ds test_ds = xr.open_dataset("test.nc", engine="h5netcdf") test_ds
``` Anything else we need to know?: The issue may be related to #1638. Environment: Output of <tt>xr.show_versions()</tt>INSTALLED VERSIONS ------------------ commit: None python: 3.8.6 | packaged by conda-forge | (default, Oct 7 2020, 19:08:05) [GCC 7.5.0] python-bits: 64 OS: Linux OS-release: 5.4.0-65-generic machine: x86_64 processor: x86_64 byteorder: little LC_ALL: None LANG: cs_CZ.UTF-8 LOCALE: cs_CZ.UTF-8 libhdf5: 1.10.5 libnetcdf: 4.6.3 xarray: 0.16.2 pandas: 1.1.5 numpy: 1.19.4 scipy: 1.5.3 netCDF4: 1.5.5 pydap: None h5netcdf: 0.8.1 h5py: 3.1.0 Nio: None zarr: None cftime: 1.3.0 nc_time_axis: None PseudoNetCDF: None rasterio: None cfgrib: None iris: None bottleneck: 1.3.2 dask: 2020.12.0 distributed: 2020.12.0 matplotlib: 3.3.3 cartopy: None seaborn: 0.11.0 numbagg: None pint: 0.16.1 setuptools: 49.6.0.post20201009 pip: 20.3.3 conda: None pytest: 6.2.1 IPython: 7.19.0 sphinx: None |
{ "url": "https://api.github.com/repos/pydata/xarray/issues/4859/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]);