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 background state #40

Merged
merged 4 commits into from
Mar 4, 2017
Merged

Conversation

mcartwright
Copy link
Contributor

@mcartwright mcartwright commented Nov 8, 2016

Added start and stop indices of the noise source files to background state. This is in response to Issue #39

@bmcfee bmcfee mentioned this pull request Nov 8, 2016
@bmcfee bmcfee added this to the 0.1.3 milestone Mar 1, 2017
@bmcfee bmcfee self-requested a review March 1, 2017 01:58
@bmcfee
Copy link
Owner

bmcfee commented Mar 1, 2017

Pinging back on this -- looks like we have enough issues to push out a point release in the immediate future. Any interest in finishing this one up so we can include it?

@bmcfee bmcfee modified the milestone: 0.1.3 Mar 1, 2017
Copy link
Owner

@bmcfee bmcfee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you rebase this off master, and add some test code to verify that the proposed changes are working as expected?


with psf.SoundFile(str(filename), mode='r') as soundf:

n_target = int(np.ceil(n_samples * soundf.samplerate / sr))
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sr should be explicitly cast here as float(sr) to ensure floating-point division in legacy python

@mcartwright
Copy link
Contributor Author

Hey, yeah, I will make sure I get to this soon. It won't happen today, but probably tomorrow.

@bmcfee bmcfee modified the milestone: 0.1.3 Mar 1, 2017
@mcartwright
Copy link
Contributor Author

Yo, added some tests.

@mcartwright mcartwright mentioned this pull request Mar 4, 2017
@bmcfee
Copy link
Owner

bmcfee commented Mar 4, 2017

Thanks!

This looks like you merged master though. Could you rebase instead to keep the commit log clean?

@mcartwright
Copy link
Contributor Author

Cleaned up history

@bmcfee bmcfee merged commit efed70e into bmcfee:master Mar 4, 2017
@bmcfee
Copy link
Owner

bmcfee commented Mar 4, 2017

Thanks!

@mcartwright mcartwright deleted the fix-background-state branch March 4, 2017 16:49
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