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

Fix sample floatingpoint offby1 #126

Merged
merged 2 commits into from
Mar 26, 2015

Conversation

aestrivex
Copy link
Contributor

I noticed that save_movie() was creating movies slightly shorter than the desired length -- a 6 second movie would become a 5.8 seconds movie, for instance.

I think this is primarily an issue in ffmpeg which would be almost impossible to solve, but I also noticed a minor floating point instability in the calculation of the number of samples in my data.

@agramfort
Copy link
Contributor

nice catch ** 2 !

agramfort added a commit that referenced this pull request Mar 26, 2015
@agramfort agramfort merged commit a7b4097 into nipy:master Mar 26, 2015
@agramfort
Copy link
Contributor

thanks heaps !

@coveralls
Copy link

Coverage Status

Coverage remained the same at 72.45% when pulling a8ee442 on aestrivex:fix_sample_floatingpoint_offby1 into 330cbe1 on nipy:master.

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.

3 participants