Skip to content

isclose, allclose and less_equal ufunc not supported #76

Closed

Description

@mikofski

FYI - bummer.

    2188     array([True, False])
    2189     >>> np.isclose([1.0, np.nan], [1.0, np.nan], equal_nan=True)
    2190     array([True, True])
    2191     """
    2192     def within_tol(x, y, atol, rtol):
 -> 2193         with errstate(invalid='ignore'):
    2194             result = less_equal(abs(x-y), atol + rtol * abs(y))
    2195         if isscalar(a) and isscalar(b):
    2196             result = bool(result)
    2197         return result
    2198
*** ValueError: ufunc %r not supported by quantities
                please file a bug report at https://github.com/python-quantities

Activity

  1. bjodah commented on Oct 12, 2015

    @bjodah
    Contributor

    @mikofski did you find a reliable work around for this?

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions