Skip to content

Pyodide Numpy Int Array Bug #14

@ghabs

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.

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