home / github

Menu
  • GraphQL API
  • Search all tables

issue_comments

Table actions
  • GraphQL API for issue_comments

2 rows where issue = 802737682 sorted by updated_at descending

✎ View and edit SQL

This data as json, CSV (advanced)

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

user 2

  • spencerkclark 1
  • mathause 1

issue 1

  • Modify _encode_datetime_with_cftime for compatibility with cftime > 1.4.0 · 2 ✖

author_association 1

  • MEMBER 2
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions performed_via_github_app issue
774684442 https://github.com/pydata/xarray/pull/4871#issuecomment-774684442 https://api.github.com/repos/pydata/xarray/issues/4871 MDEyOklzc3VlQ29tbWVudDc3NDY4NDQ0Mg== spencerkclark 6628425 2021-02-07T14:36:50Z 2021-02-07T15:08:17Z MEMBER

Thanks @mathause -- indeed the timings are pretty similar.

Before: ``` In [1]: import xarray as xr

In [2]: times = xr.cftime_range("2000", periods=1000).values

In [3]: units = "days since 2000-01-01"

In [4]: calendar = "gregorian"

In [5]: %%timeit ...: xr.coding.times._encode_datetime_with_cftime(times, units, calendar)

15.5 ms ± 170 µs per loop (mean ± std. dev. of 7 runs, 100 loops each) ```

After: ``` In [1]: import xarray as xr

In [2]: times = xr.cftime_range("2000", periods=1000).values

In [3]: units = "days since 2000-01-01"

In [4]: calendar = "gregorian"

In [5]: %%timeit ...: xr.coding.times._encode_datetime_with_cftime(times, units, calendar)

14.9 ms ± 160 µs per loop (mean ± std. dev. of 7 runs, 100 loops each) ```

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Modify _encode_datetime_with_cftime for compatibility with cftime > 1.4.0 802737682
774670187 https://github.com/pydata/xarray/pull/4871#issuecomment-774670187 https://api.github.com/repos/pydata/xarray/issues/4871 MDEyOklzc3VlQ29tbWVudDc3NDY3MDE4Nw== mathause 10194086 2021-02-07T12:57:53Z 2021-02-07T12:57:53Z MEMBER

LGTM - did you check if that makes it slower? (Probably not as vectorize is also a for loop under to hood).

I think the failures are #4873 and #4865

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Modify _encode_datetime_with_cftime for compatibility with cftime > 1.4.0 802737682

Advanced export

JSON shape: default, array, newline-delimited, object

CSV options:

CREATE TABLE [issue_comments] (
   [html_url] TEXT,
   [issue_url] TEXT,
   [id] INTEGER PRIMARY KEY,
   [node_id] TEXT,
   [user] INTEGER REFERENCES [users]([id]),
   [created_at] TEXT,
   [updated_at] TEXT,
   [author_association] TEXT,
   [body] TEXT,
   [reactions] TEXT,
   [performed_via_github_app] TEXT,
   [issue] INTEGER REFERENCES [issues]([id])
);
CREATE INDEX [idx_issue_comments_issue]
    ON [issue_comments] ([issue]);
CREATE INDEX [idx_issue_comments_user]
    ON [issue_comments] ([user]);
Powered by Datasette · Queries took 640.636ms · About: xarray-datasette