home / github

Menu
  • Search all tables
  • GraphQL API

issue_comments

Table actions
  • GraphQL API for issue_comments

3 rows where author_association = "CONTRIBUTOR" and issue = 818059250 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

  • Zac-HD 2
  • github-actions[bot] 1

issue 1

  • Automatic duck array testing - reductions · 3 ✖

author_association 1

  • CONTRIBUTOR · 3 ✖
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions performed_via_github_app issue
872438265 https://github.com/pydata/xarray/pull/4972#issuecomment-872438265 https://api.github.com/repos/pydata/xarray/issues/4972 MDEyOklzc3VlQ29tbWVudDg3MjQzODI2NQ== github-actions[bot] 41898282 2021-07-01T17:51:08Z 2021-08-15T13:15:44Z CONTRIBUTOR

Unit Test Results

6 files           6 suites   58m 27s :stopwatch: 16 289 tests 14 528 :heavy_check_mark: 1 753 :zzz:   8 :x: 90 930 runs  82 604 :heavy_check_mark: 8 284 :zzz: 42 :x:

For more details on these failures, see this check.

Results for commit 1d98fec1.

:recycle: This comment has been updated with latest results.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Automatic duck array testing - reductions 818059250
828924833 https://github.com/pydata/xarray/pull/4972#issuecomment-828924833 https://api.github.com/repos/pydata/xarray/issues/4972 MDEyOklzc3VlQ29tbWVudDgyODkyNDgzMw== Zac-HD 12229877 2021-04-29T04:03:39Z 2021-04-29T04:03:39Z CONTRIBUTOR

is there a way to separate sizes into dims and shape without using draw? I tried dims, shape = sizes.map(lambda s: tuple(zip(*s))), but since the map strategy is not iterable the final unpacking fails.

You've just got to use draw for this.

I'd prefer the verbose repr of st.builds() when debugging strategies, but if I know the strategy is correct and understand what it generates I'd probably prefer the smaller repr of @st.composite.

That's a good way of thinking about it :slightly_smiling_face:

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Automatic duck array testing - reductions 818059250
808736180 https://github.com/pydata/xarray/pull/4972#issuecomment-808736180 https://api.github.com/repos/pydata/xarray/issues/4972 MDEyOklzc3VlQ29tbWVudDgwODczNjE4MA== Zac-HD 12229877 2021-03-27T13:51:54Z 2021-03-27T13:51:54Z CONTRIBUTOR

Looking at https://github.com/keewis/xarray/compare/duckarray-tests...duckarray-tests-hypothesis, for high-level feedback:

  • Overall it looks pretty good; though ping me again if/when it's a PR and I'll do line-level feedback on idiom issues
  • A more general test would generate the shapes, and the axes to reduce over - reducing a 1D array over the first dimension is going to miss things
  • You use @st.composite when the .map() method and a lambda would suffice (though the perf gain is small enough that this is mostly a readability issue)
  • I don't see the point of Label, and we advise against mixing "a strategy or a value". We break this rule a few times for backwards-compatibility in our Numpy support, but wouldn't write such an API these days.

And I'm always delighted to see people using Hypothesis to test libraries that I use and love 🥰🤩

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Automatic duck array testing - reductions 818059250

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