Skip to content

numpy random functions do not trigger array interface #6

Description

@mocquin

An related issue is opened at numpy : numpy/numpy#19382 (and also mentionned in numpy/numpy#18902 (comment))

In the case of physipy:

import numpy as np
from physipy import m

# raises a DimensionError, by trying to convert to float
np.random.normal(loc=0.5*m)

# it is not a matter that loc and scale must have same dimension since
# the following also fails
np.random.normal(loc=0.5*m, scale=0.5*m) 

Activity

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

    numpynumpy related

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions