Skip to content

np.cross fails #7

Open
Open

Description

@ddale

test suite failure:

======================================================================
FAIL: test_cross (quantities.tests.test_umath.TestUmath)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/darren/Projects/python-quantities/quantities/tests/test_umath.py", line 50, in test_cross
    self.assertQuantityEqual(np.cross(a,b), [-15,-2,39]*pq.kPa*pq.m**2)
  File "/Users/darren/Projects/python-quantities/quantities/tests/common.py", line 44, in assertQuantityEqual
    "Dimensionalities are not equal (%s vs %s)%s" % (d1, d2, msg)
AssertionError: Dimensionalities are not equal (dimensionless vs m**2*kPa)

Activity

  1. mih commented on Sep 26, 2011

    @mih

    Seems to be resolved with 0.10

  2. ddale commented on Sep 27, 2011

    @ddale
    MemberAuthor

    resolved, or marked as expected failure?

  3. mih commented on Sep 27, 2011

    @mih

    Depends on how you view it. Marked as expect == not important enough to fix == resolved by selective attention ;-) Anyway, it doesn't show up as a failure, which is relevant in the context of running the unittests at package buildtime, where failure would mean no package gets built.

  4. ddale commented on Sep 27, 2011

    @ddale
    MemberAuthor

    Fixing will require changes to numpy. Numpy is considering a change to how subclasses would extend/implement ufuncs, which would make life much easier for quantities.

  5. mih commented on Sep 27, 2011

    @mih

    On Tue, Sep 27, 2011 at 08:52:51AM -0700, Darren Dale wrote:

    Fixing will require changes to numpy. Numpy is considering a change to how subclasses would extend/implement ufuncs, which would make life much easier for quantities.

    So this means a versioned dependency on NumPy 1.6 (or later)?

    Michael Hanke
    http://mih.voxindeserto.de

  6. ddale commented on Sep 28, 2011

    @ddale
    MemberAuthor

    Resolving the few offending ufuncs will require a dependency on a future version of numpy, or quantities will have to ship its own complete set of ufuncs.

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