home / github

Menu
  • Search all tables
  • GraphQL API

issues

Table actions
  • GraphQL API for issues

3 rows where state = "closed", type = "issue" and user = 4806877 sorted by updated_at descending

✎ View and edit SQL

This data as json, CSV (advanced)

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

type 1

  • issue · 3 ✖

state 1

  • closed · 3 ✖

repo 1

  • xarray 3
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
572295802 MDU6SXNzdWU1NzIyOTU4MDI= 3806 Turn on _repr_html_ by default? jsignell 4806877 closed 0     3 2020-02-27T19:12:57Z 2020-03-02T23:01:44Z 2020-03-02T23:01:44Z CONTRIBUTOR      

I just wanted to open this to discuss turning the repr_html on by default. This PR https://github.com/pydata/xarray/pull/3425 added it as a style option, but I suspect that more people will use if it is on by default. Does that seem like a reasonable change?

{
    "url": "https://api.github.com/repos/pydata/xarray/issues/3806/reactions",
    "total_count": 4,
    "+1": 4,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  completed xarray 13221727 issue
378898407 MDU6SXNzdWUzNzg4OTg0MDc= 2550 Include filename or path in open_mfdataset jsignell 4806877 closed 0     19 2018-11-08T20:13:31Z 2018-12-30T01:00:36Z 2018-12-30T01:00:36Z CONTRIBUTOR      

When reading from multiple files, sometimes there is information encoded in the filename. For example in these grib files the time: ./ST4.2018092500.01h, ./ST4.2018092501.01h. It seems like a generally useful thing would be to allow the passing of a kwargs (such as path_as_coord or something) that would define a set of coords with one for the data from each file.

I think the code change would be small:

python if path_as_coord: ds = ds.assign_coords(path=file_name)

In use it would be like:

```python

xr.open_mfdataset(['./ST4.2018092500.01h', './ST4.2018092501.01h'], engine='pynio', concat_dim='path') <xarray.Dataset> Dimensions: (x: 881, y: 1121, time: 2) Coordinates: lat (x, y) float32 23.116999 ... 45.618984 lon (x, y) float32 -119.023 ... -59.954613 * path (path) <U20 './ST4.2018092500.01h' './ST4.2018092501.01h' Dimensions without coordinates: x, y Data variables: var_0 (time, x, y) float32 dask.array<shape=(2, 881, 1121), chunksize=(1, 881, 1121)> var_1 (time, x, y) float32 dask.array<shape=(2, 881, 1121), chunksize=(1, 881, 1121)> ```

For context I have implemented something similar in dask: https://github.com/dask/dask/pull/3908

{
    "url": "https://api.github.com/repos/pydata/xarray/issues/2550/reactions",
    "total_count": 3,
    "+1": 3,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  completed xarray 13221727 issue
72145600 MDU6SXNzdWU3MjE0NTYwMA== 406 millisecond and microseconds support jsignell 4806877 closed 0   0.5 987654 5 2015-04-30T12:38:27Z 2015-05-01T20:33:10Z 2015-05-01T20:33:10Z CONTRIBUTOR      

netcdf4python supports milliseconds and microseconds:

https://github.com/Unidata/netcdf4-python/commit/22d439d6d3602171dc2c23bca0ade31d3c49ad20

would it be possible to support in X-ray?

{
    "url": "https://api.github.com/repos/pydata/xarray/issues/406/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 22.097ms · About: xarray-datasette