home / github

Menu
  • Search all tables
  • GraphQL API

issue_comments

Table actions
  • GraphQL API for issue_comments

7 rows where author_association = "MEMBER", issue = 484015016 and user = 5635139 sorted by updated_at descending

✎ View and edit SQL

This data as json, CSV (advanced)

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

user 1

  • max-sixty · 7 ✖

issue 1

  • tests for arrays with units · 7 ✖

author_association 1

  • MEMBER · 7 ✖
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions performed_via_github_app issue
542979204 https://github.com/pydata/xarray/pull/3238#issuecomment-542979204 https://api.github.com/repos/pydata/xarray/issues/3238 MDEyOklzc3VlQ29tbWVudDU0Mjk3OTIwNA== max-sixty 5635139 2019-10-17T03:14:06Z 2019-10-17T03:14:06Z MEMBER

Great! Quite an effort @keewis —thank you!

{
    "total_count": 3,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 3,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  tests for arrays with units 484015016
542938278 https://github.com/pydata/xarray/pull/3238#issuecomment-542938278 https://api.github.com/repos/pydata/xarray/issues/3238 MDEyOklzc3VlQ29tbWVudDU0MjkzODI3OA== max-sixty 5635139 2019-10-16T23:56:26Z 2019-10-16T23:56:26Z MEMBER

I think these tests are unrelated and we can merge?

```python

=================================== FAILURES =================================== ____ testdatetime_reduce[False] ______

dask = False

@arm_xfail
@pytest.mark.parametrize("dask", [False, True])
def test_datetime_reduce(dask):
    time = np.array(pd.date_range("15/12/1999", periods=11))
    time[8:11] = np.nan
    da = DataArray(np.linspace(0, 365, num=11), dims="time", coords={"time": time})

    if dask and has_dask:
        chunks = {"time": 5}
        da = da.chunk(chunks)

    actual = da["time"].mean()
  assert not pd.isnull(actual)

E AssertionError: assert not True E + where True = <function isna at 0x7fcbdefdbae8>(<xarray.DataArray 'time' ()>\narray('NaT', dtype='datetime64[ns]')) E + where <function isna at 0x7fcbdefdbae8> = pd.isnull

xarray/tests/test_duck_array_ops.py:288: AssertionError ____ test_datetime_reduce[True] ______

dask = True

@arm_xfail
@pytest.mark.parametrize("dask", [False, True])
def test_datetime_reduce(dask):
    time = np.array(pd.date_range("15/12/1999", periods=11))
    time[8:11] = np.nan
    da = DataArray(np.linspace(0, 365, num=11), dims="time", coords={"time": time})

    if dask and has_dask:
        chunks = {"time": 5}
        da = da.chunk(chunks)

    actual = da["time"].mean()
  assert not pd.isnull(actual)

E AssertionError: assert not True E + where True = <function isna at 0x7fcbdefdbae8>(<xarray.DataArray 'time' ()>\narray('NaT', dtype='datetime64[ns]')) E + where <function isna at 0x7fcbdefdbae8> = pd.isnull ```

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  tests for arrays with units 484015016
542913779 https://github.com/pydata/xarray/pull/3238#issuecomment-542913779 https://api.github.com/repos/pydata/xarray/issues/3238 MDEyOklzc3VlQ29tbWVudDU0MjkxMzc3OQ== max-sixty 5635139 2019-10-16T22:14:56Z 2019-10-16T22:14:56Z MEMBER

Added integration tests against pint <https://pint.readthedocs.io/>_. Note that these tests currently require a special version of pint to run and are otherwise skipped. Also note that at the moment of writing, there are issues when pint interacts with non-numpy array libraries, e.g. dask or sparse.

(remove emphasis in actual version)

readers will be much more interested in what they can actually do with pint

👍 , let's add a sentence

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  tests for arrays with units 484015016
542416181 https://github.com/pydata/xarray/pull/3238#issuecomment-542416181 https://api.github.com/repos/pydata/xarray/issues/3238 MDEyOklzc3VlQ29tbWVudDU0MjQxNjE4MQ== max-sixty 5635139 2019-10-15T21:38:43Z 2019-10-15T21:38:43Z MEMBER

OK great! @crusaderky any final thoughts? Anyone else?

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  tests for arrays with units 484015016
542391175 https://github.com/pydata/xarray/pull/3238#issuecomment-542391175 https://api.github.com/repos/pydata/xarray/issues/3238 MDEyOklzc3VlQ29tbWVudDU0MjM5MTE3NQ== max-sixty 5635139 2019-10-15T20:30:30Z 2019-10-15T20:30:30Z MEMBER

I assumed this to be the same as datetime, which means object labels instead of strings. So now only the top-level functions and dataset are missing.

👍

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  tests for arrays with units 484015016
533181017 https://github.com/pydata/xarray/pull/3238#issuecomment-533181017 https://api.github.com/repos/pydata/xarray/issues/3238 MDEyOklzc3VlQ29tbWVudDUzMzE4MTAxNw== max-sixty 5635139 2019-09-19T15:20:01Z 2019-09-19T15:20:01Z MEMBER

In general we've tried to make identical as exactly identical, including types etc, so I think different units would return False there

{
    "total_count": 2,
    "+1": 2,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  tests for arrays with units 484015016
523926972 https://github.com/pydata/xarray/pull/3238#issuecomment-523926972 https://api.github.com/repos/pydata/xarray/issues/3238 MDEyOklzc3VlQ29tbWVudDUyMzkyNjk3Mg== max-sixty 5635139 2019-08-22T14:19:37Z 2019-08-22T14:19:37Z MEMBER

Great! This is going to be exciting. Ping here for any questions!

From what is already done, mypy . fails because of pint (this the same as with quantities in #2956). What would I do to fix that?

V easy - add to setup.cfg like other libraries listed there

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  tests for arrays with units 484015016

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 175.717ms · About: xarray-datasette