home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 610291874

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/3643#issuecomment-610291874 https://api.github.com/repos/pydata/xarray/issues/3643 610291874 MDEyOklzc3VlQ29tbWVudDYxMDI5MTg3NA== 14808389 2020-04-07T09:53:23Z 2020-04-07T11:28:18Z MEMBER

Is part of the specific problem that Pint has a guarded import of xarray when defining its upcast types? Would it help if it checked for the fully qualified class name instead?

SupportsArithmetic is a base class of Variable, DataArray and Dataset, so if I try to import pint for type checking, pint can't use these classes, otherwise we'd have a circular import. Comparing fully qualified class names would work, but it might make sense to wait for a recommendation regarding my question.

Should this be its own issue?

Definitely, even if it's just to clarify why we accept different types in those functions: I think __init__ may convert its arguments so it supports more types than __array_ufunc__ (I don't know about the others, though). For the missing __array_function__ see #3917.

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