Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with Convert np.array to a scalar value #44

Open
Mafumaful opened this issue Dec 12, 2024 · 0 comments
Open

Issue with Convert np.array to a scalar value #44

Mafumaful opened this issue Dec 12, 2024 · 0 comments

Comments

@Mafumaful
Copy link

Mafumaful commented Dec 12, 2024

image

Conversion from np.array to scalar is no longer supported in new numpy, so in carFactory. In my work I came across this problem and I don't want to change the numpy version due to other compatible problem.

I suggest using .item() instead of feed it into dpg.draw_polygon(drawVex, color=vcolor, fill=vcolor, parent=node) directly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant