home / github

Menu
  • GraphQL API
  • Search all tables

issues

Table actions
  • GraphQL API for issues

5 rows where user = 14019925 sorted by updated_at descending

✎ View and edit SQL

This data as json, CSV (advanced)

Suggested facets: comments, closed_at, created_at (date), updated_at (date), closed_at (date)

type 2

  • pull 3
  • issue 2

state 1

  • closed 5

repo 1

  • xarray 5
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
331569116 MDU6SXNzdWUzMzE1NjkxMTY= 2226 duplicate coord names in DataArray constructor tv3141 14019925 closed 0     3 2018-06-12T12:37:57Z 2023-12-01T00:40:19Z 2023-12-01T00:40:19Z CONTRIBUTOR      

Code Sample

```python

import numpy as np import xarray as xr da = xr.DataArray(np.zeros((2,3)), coords=[('unknown', [1, 2]), ('unknown', [0, 90, 180])]) da <xarray.DataArray (unknown: 3)> array([[0., 0., 0.], [0., 0., 0.]]) Coordinates: * unknown (unknown) int64 0 90 180 da.dims ('unknown', 'unknown') da.coords Coordinates: * unknown (unknown) int64 0 90 180 da.sel(unknown=90) ValueError: conflicting sizes for dimension 'unknown': length 2 on <this-array> and length 3 on 'unknown'

```

Problem description

The DaraArray constructor creates an invalid DataArray given duplicate coordinate names.

Expected Output

The DaraArray constructor should raise an Exception given duplicate coordinates names.

Output of xr.show_versions()

INSTALLED VERSIONS ------------------ commit: None python: 3.6.5.final.0 python-bits: 64 OS: Linux OS-release: 3.16.0-5-amd64 machine: x86_64 processor: byteorder: little LC_ALL: None LANG: en_GB.UTF-8 LOCALE: en_GB.UTF-8 xarray: 0.10.4 pandas: 0.23.0 numpy: 1.14.3 scipy: 1.1.0 netCDF4: 1.3.1 h5netcdf: 0.5.1 h5py: 2.8.0 Nio: None zarr: None bottleneck: 1.2.1 cyordereddict: None dask: 0.17.5 distributed: 1.21.8 matplotlib: 2.2.2 cartopy: 0.16.0 seaborn: None setuptools: 39.1.0 pip: 10.0.1 conda: None pytest: 3.5.1 IPython: None sphinx: None
{
    "url": "https://api.github.com/repos/pydata/xarray/issues/2226/reactions",
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  completed xarray 13221727 issue
350992457 MDExOlB1bGxSZXF1ZXN0MjA4NzAwODEx 2369 uncomment python -OO test tv3141 14019925 closed 0     1 2018-08-15T22:39:34Z 2018-08-15T23:05:58Z 2018-08-15T23:05:41Z CONTRIBUTOR   0 pydata/xarray/pulls/2369
{
    "url": "https://api.github.com/repos/pydata/xarray/issues/2369/reactions",
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
    xarray 13221727 pull
327877184 MDExOlB1bGxSZXF1ZXN0MTkxNTYzODk4 2202 iris conversion tv3141 14019925 closed 0     2 2018-05-30T19:58:48Z 2018-08-10T14:59:14Z 2018-07-19T05:56:24Z CONTRIBUTOR   0 pydata/xarray/pulls/2202
  • [x] Closes #2201 (remove if there is no corresponding issue, which should only be the case for minor changes)
  • [x] Tests added (for all bug fixes or enhancements)
  • [x] Tests passed (for all non-documentation changes)
  • [x] Fully documented, including whats-new.rst for all changes
{
    "url": "https://api.github.com/repos/pydata/xarray/issues/2202/reactions",
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
    xarray 13221727 pull
345318794 MDExOlB1bGxSZXF1ZXN0MjA0NTAyOTEw 2321 Add libraries to show_versions tv3141 14019925 closed 0     0 2018-07-27T18:11:31Z 2018-08-10T14:58:57Z 2018-07-28T16:37:14Z CONTRIBUTOR   0 pydata/xarray/pulls/2321

Added missing libraries to show_versions, and the installation documentation.

The order of libraries in show_versions follows the order of libraries in the installation documentation.

{
    "url": "https://api.github.com/repos/pydata/xarray/issues/2321/reactions",
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
    xarray 13221727 pull
327876834 MDU6SXNzdWUzMjc4NzY4MzQ= 2201 Conversion to and from Iris fails tv3141 14019925 closed 0     1 2018-05-30T19:57:45Z 2018-07-19T05:56:24Z 2018-07-19T05:56:24Z CONTRIBUTOR      

Code Sample

```python import numpy as np import xarray as xr from iris.coords import DimCoord from iris.cube import Cube

def test_from_iris_no_var_name(): latitude = DimCoord(np.linspace(-90, 90, 4), standard_name='latitude') cube = Cube([0, 0, 0, 0], dim_coords_and_dims=[(latitude, 0)]) xr.DataArray.from_iris(cube)

ValueError: Coordinate latitude has no var_name attribute.

def test_to_iris_non_numeric_coord(): data = np.random.rand(3) locs = ['IA', 'IL', 'IN'] da = xr.DataArray(data, coords=[locs], dims=['space']) xr.DataArray.to_iris(da)

ValueError: The points array must be numeric.

def test_to_iris_non_monotonic_coord(): data = np.random.rand(3) locs = [0, 2, 1] da = xr.DataArray(data, coords=[locs], dims=['space']) xr.DataArray.to_iris(da)

ValueError: The points array must be strictly monotonic.

```

Problem description

Each of the tests above fails.

Expected Output

First test: Use standard_name or something else if var_name is not set. Second/third tests: Fallback to AuxCoord if DimCoord is too strict.

Output of xr.show_versions()

INSTALLED VERSIONS ------------------ commit: None python: 3.6.5.final.0 python-bits: 64 OS: Linux OS-release: 3.16.0-5-amd64 machine: x86_64 processor: byteorder: little LC_ALL: None LANG: en_GB.UTF-8 LOCALE: en_GB.UTF-8 xarray: 0.10.4 pandas: 0.23.0 numpy: 1.14.3 scipy: 1.1.0 netCDF4: 1.3.1 h5netcdf: 0.5.1 h5py: 2.8.0 Nio: None zarr: None bottleneck: 1.2.1 cyordereddict: None dask: 0.17.5 distributed: 1.21.8 matplotlib: 2.2.2 cartopy: 0.16.0 seaborn: None setuptools: 39.1.0 pip: 10.0.1 conda: None pytest: 3.5.1 IPython: None sphinx: None
{
    "url": "https://api.github.com/repos/pydata/xarray/issues/2201/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

CSV options:

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]);
Powered by Datasette · Queries took 25.152ms · About: xarray-datasette