home / github

Menu
  • Search all tables
  • GraphQL API

issues

Table actions
  • GraphQL API for issues

1 row where state = "open" and user = 49281118 sorted by updated_at descending

✎ View and edit SQL

This data as json, CSV (advanced)

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

type 1

  • issue 1

state 1

  • open · 1 ✖

repo 1

  • xarray 1
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
1024582327 I_kwDOAMm_X849EeK3 5861 Xarray's interpolator behavior compared to scipy with a numpy array: new keyword behavior requested rebeccaringuette 49281118 open 0     0 2021-10-12T23:08:34Z 2021-10-12T23:09:40Z   NONE      

I'm having trouble with the differing behavior between giving an xarray object to scipy's interpolating functions (particularly the RegularGridInterpolator and the one xarray's interpn is based on) versus giving a numpy array. When giving the interpolator a numpy array, I get a 1D array returned with one value for every point given. When an xarray object is given instead, I get an N dimensional array, as if a np.meshgrid statement is executed on the given points. I have provided more detail at the link below. This differing return behavior and the additional demand for the calculation for a grid made from the points (rather than the points themselves) is much slower than the numpy approach, but I can't use numpy arrays for medium data (because it won't all fit in my memory). Can a feature be added, maybe a 'numpy-like' keyword, to xarray's version of the scipy interpolator to only execute for the points given rather than a grid made from the points? Such a keyword would enable backwards-compatibility and reduce the computational demand for those interested in interpolating along a curved trajectory (such as in my case).

Note: the same differing behavior occurs when I give scipy's RegularGridInterpolator an xarray object.

https://github.com/scipy/scipy/issues/14824#issue-1021424672

{
    "url": "https://api.github.com/repos/pydata/xarray/issues/5861/reactions",
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
    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 23.57ms · About: xarray-datasette