Skip to content

Comments

Integer to float conversion TypeError#36

Open
ValentinCassayre wants to merge 2 commits intos-schneider:masterfrom
ValentinCassayre:master
Open

Integer to float conversion TypeError#36
ValentinCassayre wants to merge 2 commits intos-schneider:masterfrom
ValentinCassayre:master

Conversation

@ValentinCassayre
Copy link

Some division operation between two integers converted the result to a float. This caused problems with arrays shape (TypeError for array slice, linspace). My fix was to replace division / by integer division //. Alternative could be to int() the result.
I have fixed a few for my usage but some are probably still there

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