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

fixed str to int bug #242

Closed
wants to merge 1 commit into from
Closed

fixed str to int bug #242

wants to merge 1 commit into from

Conversation

philsippl
Copy link

For some obj files the import failed with following error:
TypeError: unsupported operand type(s) for -: 'str' and 'int'

This was due to this line here: mesh -= 1 where in some cases the pandas failed to convert to int, but instead converted it to string.
However, an float array can't be used as an array indexer, so the astype conversion is necessary.
I think this is also related to #230

@daavoo
Copy link
Owner

daavoo commented Aug 26, 2019

Hola @philsippl ! Sorry for late reply and thanks for the P.R. I think that this has been already fixed in #253
Mant thanks again tough

@daavoo daavoo closed this Aug 26, 2019
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.

2 participants