Skip to content

Pyodide Numpy Int Array Bug #14

Description

@ghabs

User report: The numpy.random.choice function is failing.

The problem is caused by Pyodide not converting numpy types properly. The numpy.random.choice function returns an numpy.int32 type which gets converted to an empty array for some reason.

Mitigation: Use random.choice or convert the numpy choice to a python int.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions