You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: