Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ENH: average to allow better use w/ custom objects #12067

Closed
wants to merge 1 commit into from

Commits on Oct 1, 2018

  1. average to allow better use w/ custom objects

    A simple syntax change to enable better use of `average` with custom Python objects. 
    
    This works because if `weights is None`, then `avg.dtype` can be `"O"` when working with custom Python objects.
    
    The fix does nothing but change how shape is called, so that it will work with objects that don't necessarily have shapes, like base Python floats, etc.
    numpynewb committed Oct 1, 2018
    Configuration menu
    Copy the full SHA
    bbd341f View commit details
    Browse the repository at this point in the history