issue_comments: 891140503
This data as json
html_url | issue_url | id | node_id | user | created_at | updated_at | author_association | body | reactions | performed_via_github_app | issue |
---|---|---|---|---|---|---|---|---|---|---|---|
https://github.com/pydata/xarray/issues/5664#issuecomment-891140503 | https://api.github.com/repos/pydata/xarray/issues/5664 | 891140503 | IC_kwDOAMm_X841HbmX | 2448579 | 2021-08-02T15:59:10Z | 2021-08-02T16:00:14Z | MEMBER | Thanks @mathisc we use scipy by default and that's what it does... ``` python In [6]: from scipy.interpolate import interp1d In [7]: f = sp.interpolate.interp1d([0, 1, 2], [np.nan, 0, 1]) In [8]: f([0, 1, 2]) Out[8]: array([nan, nan, 1.]) ``` Can you file an issue over at scipy? EDIT: I guess we could skip interpolating when output coordinate values are a subset of the input coordinate values. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
957918751 |