home / github / issue_comments

Menu
  • GraphQL API
  • Search all tables

issue_comments: 974864775

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/pull/5981#issuecomment-974864775 https://api.github.com/repos/pydata/xarray/issues/5981 974864775 IC_kwDOAMm_X846G0GH 10050469 2021-11-21T17:59:22Z 2021-11-21T17:59:22Z MEMBER

Side note: with this design (no call to repr() in format()) we would mimick numpy's behavior:

python a = np.array([0.1, 0.2]) a.__format__("") Out[16]: '[0.1 0.2]' a.__repr__() Out[17]: 'array([0.1, 0.2])'

However I'm quite surprised as to why .__format__("") works on non-scalar arrays but not with other specifiers - this is discussed somehow in https://github.com/numpy/numpy/issues/5543 . I think it's okay for xarray to defer to whatever numpy is doing here, but of course we can also keep the status-quo, it's quite a small change after all.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  1051772149
Powered by Datasette · Queries took 0.774ms · About: xarray-datasette