home / github

Menu
  • GraphQL API
  • Search all tables

issues

Table actions
  • GraphQL API for issues

3 rows where user = 6197628 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

  • pull 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
1690019325 PR_kwDOAMm_X85PddJ6 7799 Start making unit testing more general dstansby 6197628 closed 0     7 2023-04-30T18:04:52Z 2024-01-11T11:49:14Z 2024-01-11T11:49:14Z CONTRIBUTOR   0 pydata/xarray/pulls/7799

As part of https://github.com/pydata/xarray/issues/525, I would like to start running the same tests already implemented for pint on other unit libraries - the one I'm specifically interested in is astropy.

This PR is a proof of concept to start making the tests in test_units.py more general, so it's easy to implement tests against other unit libraries. Important bits of this PR:

  • The UnitInfo base class, which defines an interface against which additional unit libraries can be implemented.
  • Concrete implementations of this for pint and astropy (the astropy one is commented out for now)
  • Modifications that make test_apply_ufunc_dataarray run for both astropy and pint.
  • A few new tests for helper functions, that I needed to fix issues with astropy testing

Would be greatful for feedback - is this worthwhile? If so, I can roll this approach out to more tests in test_units.py (there's certainly a lot of them!), either in this PR or a subsequent one.

{
    "url": "https://api.github.com/repos/pydata/xarray/issues/7799/reactions",
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
    xarray 13221727 pull
1690041959 PR_kwDOAMm_X85Pdhwk 7800 De-duplicate some unit test paramatrization dstansby 6197628 closed 0     4 2023-04-30T19:02:57Z 2024-01-11T11:48:51Z 2024-01-11T11:48:51Z CONTRIBUTOR   0 pydata/xarray/pulls/7800

This removes a lot of duplication in parametrizing the unit testing, by extracting a common decorator into a new file. I had to move the tests to a new sub-folder to get this to work, I hope that's okay?

{
    "url": "https://api.github.com/repos/pydata/xarray/issues/7800/reactions",
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
    xarray 13221727 pull
1690872248 PR_kwDOAMm_X85PgTqN 7801 Update asv links in contributing guide dstansby 6197628 closed 0     2 2023-05-01T14:16:24Z 2023-05-01T15:53:10Z 2023-05-01T15:13:46Z CONTRIBUTOR   0 pydata/xarray/pulls/7801
  • asv is on PyPI, so install from there instead of the git repo
  • Update some links that are out of date
{
    "url": "https://api.github.com/repos/pydata/xarray/issues/7801/reactions",
    "total_count": 1,
    "+1": 1,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
    xarray 13221727 pull

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