Skip to content

Transition Quantity to use __array_ufunc__ #2492

Closed

Description

@astrofrog

It looks like we should start preparing the transition to __numpy_ufunc__ (see e.g. numpy/numpy#4709 (comment)) since it will replace __array_prepare__ etc. in the long term.

@mhvk @mdboom - are either of you interested in trying to investigate this?

Activity

  1. added this to the Future milestone on May 15, 2014
  2. mhvk commented on May 18, 2014

    @mhvk
    Contributor

    @astrofrog - I started implementing the __numpy_ufunc__ stuff quite a while ago, but ran into an issue with two parameter ufunc's (numpy/numpy#4160). Since that is resolved, I can revive this. This will have to wait a bit, though (till I return from holidays, i.e., at least a week).

  3. astrofrog commented on May 18, 2014

    @astrofrog
    MemberAuthor

    @mhvk - great, thanks!

  4. mhvk commented on Jul 8, 2014

    @mhvk
    Contributor

    Am closing this one, since there is an actual PR.

  5. embray commented on Jul 11, 2014

    @embray
    Member

    @mhvk I try to leave issues open until and unless a PR addressing it is actually merged.

  6. reopened this on Jul 11, 2014
  7. mhvk commented on Jul 11, 2014

    @mhvk
    Contributor

    I usually try to have only one issue per issue... (hence like issue2pr a lot!). Anyway, in this case the astropy PR seems fine but it is held up by numpy bugs -- indeed, the only three remaining numpy-1.9-blockers are from us...

  8. embray commented on Jul 11, 2014

    @embray
    Member

    @mhvk That's my preference as well--I'm definitely an issue2pr fan as well. But in cases where the original issue and the PR are separate it's a lot easier for me to trace the issue (both programmatically and by hand) if both are kept open. There are also many cases where a PR is closed without merging, and if the original issue it was meant to address is closed already then it's easy to lose track of the issue.

  9. mhvk commented on Feb 9, 2017

    @mhvk
    Contributor

    Added upstream fix required since this is still not in numpy. Also changed title to __array_ufunc__ -- the likely successor.

  10. changed the title [-]Transition Quantity to use ``__numpy_ufunc__``[/-] [+]Transition Quantity to use ``__array_ufunc__``[/+] on Feb 9, 2017
  11. bsipocz commented on Jun 27, 2017

    @bsipocz
    Member

    I believe #2583 implemented this, reopen if that's not the case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions