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

Change ceil back to round #147

Merged
merged 2 commits into from
Jul 20, 2016
Merged

Change ceil back to round #147

merged 2 commits into from
Jul 20, 2016

Conversation

lasalvavida
Copy link
Contributor

@lilleyse, we changed this before to make sure that rounding for integers went up for models with JOINT semantics. That is no longer an issue.

Currently if you run 2CylinderEngine through the pipeline with quantization, it tries to write 65536 to a uint16 buffer and crashes. This is because of a very minor floating point error that is solved by rounding instead.

@mramato
Copy link
Contributor

mramato commented Jul 20, 2016

Can this be easily unit tested? Since we are publishing libraries now and this is going on the website, it would be nice to add tests for problems as we find them.

@lasalvavida
Copy link
Contributor Author

Added a test.

In the future, we will want some sort of automated testing system that converts sample models to catch stuff like this.

@lilleyse
Copy link
Contributor

Looks good.

@lilleyse lilleyse merged commit 4445fe5 into master Jul 20, 2016
@lilleyse lilleyse deleted the change-back-to-round branch July 20, 2016 21:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants