home / github / issue_comments

Menu
  • GraphQL API
  • Search all tables

issue_comments: 583259053

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/3706#issuecomment-583259053 https://api.github.com/repos/pydata/xarray/issues/3706 583259053 MDEyOklzc3VlQ29tbWVudDU4MzI1OTA1Mw== 1217238 2020-02-07T06:52:26Z 2020-02-07T06:52:26Z MEMBER

Thanks for pinging me again here (I get a lot of GitHub notifications). identical is an interesting case!

I think the current behavior (1 meter is identical to 100 centimeters) is arguably consistent with how identical currently works, which only check equality between array elements.

Right now, identical considers numbers of different data types equal, e.g., int 1 is identical to float 1.0`. I think units arguably have a similar to role to data types -- hopefully eventually libraries likepint` could be implemented via custom NumPy dtypes, rather than needing to reimplement all of NumPy.

Did this come up in the context of some other downstream use-case, or is this just something that occurred to you for the sake of consistency?

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