home / github / issues

Menu
  • GraphQL API
  • Search all tables

issues: 1299306810

This data as json

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
1299306810 PR_kwDOAMm_X847H3r8 6765 Use `math` instead of `numpy` in some places 14371165 closed 0     0 2022-07-08T18:02:33Z 2022-08-12T09:07:12Z 2022-07-09T07:51:15Z MEMBER   0 pydata/xarray/pulls/6765

Use math instead of numpy where possible, looks better and seems faster as well. Idea from https://github.com/pydata/xarray/pull/6702#discussion_r903986442, https://github.com/dask/dask/pull/9232

Example: ```python %timeit math.prod((1, 2, 3)) 161 ns ± 10.5 ns per loop (mean ± std. dev. of 7 runs, 10000000 loops each)

%timeit int(np.prod((1, 2, 3))) 11.9 µs ± 248 ns per loop (mean ± std. dev. of 7 runs, 100000 loops each) ```

{
    "url": "https://api.github.com/repos/pydata/xarray/issues/6765/reactions",
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
    13221727 pull

Links from other tables

  • 0 rows from issues_id in issues_labels
  • 0 rows from issue in issue_comments
Powered by Datasette · Queries took 0.521ms · About: xarray-datasette