Skip to content

Made it compatible for classes whose names have spaces in it#4

Open
SmellingSalt wants to merge 2 commits into
theAIGuysCode:masterfrom
SmellingSalt:master
Open

Made it compatible for classes whose names have spaces in it#4
SmellingSalt wants to merge 2 commits into
theAIGuysCode:masterfrom
SmellingSalt:master

Conversation

@SmellingSalt
Copy link
Copy Markdown

@SmellingSalt SmellingSalt commented Jun 4, 2021

label[-4:]
Will take the last 4 elements of the list and convert that to an array of floats.
This way, it can work for classes with a space in the name as well.
label[1] will have a string, and so it gives an error when you try to convert it to a float.

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

Successfully merging this pull request may close these issues.

1 participant