Skip to content

np.gradient fails #9

Open
Open

Description

@ddale

Test suite failure:

======================================================================
FAIL: test_gradient (quantities.tests.test_umath.TestUmath)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/darren/Projects/python-quantities/quantities/tests/test_umath.py", line 45, in test_gradient
    raise self.failureException(e)
AssertionError: Unable to convert between units of "J" and "dimensionless"

Activity

  1. mih commented on Sep 26, 2011

    @mih

    Still present with 0.10

  2. ddale commented on Sep 27, 2011

    @ddale
    MemberAuthor

    I think its an issue with numpy, not quantities. Several numpy functions have been written such that they are not fully compatible with ndarray subclasses

  3. added
    bug
    numpy-integration
    on Nov 17, 2026
  4. added this to the 0.18.0 milestone on Nov 17, 2026
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

    bugnumpy-integration

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions