Skip to content

python3 integer division issue#208

Merged
jason-watkins merged 1 commit intonasa:developfrom
HarrisonHall:develop
May 28, 2020
Merged

python3 integer division issue#208
jason-watkins merged 1 commit intonasa:developfrom
HarrisonHall:develop

Conversation

@HarrisonHall
Copy link
Copy Markdown
Contributor

readDATA method uses range which requires the argument to be an integer ('float' object cannot be interpreted as an integer). rows is calculated by dividing the length of the buffer -5 by 36. Division in python 3 returns a float. By using integer division (// instead of /), the rows variable will be an int which will not cause this exception.

@jason-watkins
Copy link
Copy Markdown
Contributor

Hi Harrison,

Thanks for this fix! I don't think you've submitted a pull request before. Could you please fill out our contributor license agreement and email it to me (jason.watkins@nasa.gov)?

Once we've got a CLA on file for you I'll go ahead and merge this.

@HarrisonHall
Copy link
Copy Markdown
Contributor Author

I've sent the agreement, thanks!

@jason-watkins jason-watkins merged commit 76f7d28 into nasa:develop May 28, 2020
@jason-watkins jason-watkins mentioned this pull request Jun 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants