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

[fishfinder] save data #75

Merged
merged 5 commits into from
Nov 22, 2018
Merged

[fishfinder] save data #75

merged 5 commits into from
Nov 22, 2018

Conversation

Aeapsu
Copy link
Contributor

@Aeapsu Aeapsu commented Nov 15, 2018

No description provided.

@coveralls
Copy link

coveralls commented Nov 15, 2018

Coverage Status

Coverage decreased (-0.07%) to 22.711% when pulling a3093bb on Aeapsu:master into 2c1ca56 on bendalab:master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.07%) to 22.707% when pulling 3e4a4a5 on Aeapsu:master into 2c1ca56 on bendalab:master.

filename = self.filename.split('.')[0]
figfile = '{name}-{time0:.4g}s-{time1:.4g}s-snippet.WAV'.format(
name=filename, time0=t0s, time1 = t1s)
write_audio(figfile, savedata, self.data.samplerate)
Copy link
Collaborator

Choose a reason for hiding this comment

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

This is not a figfile, but a wavefile, or datafile!

We could also remove '-snippet' from the filename. It is a wav file so it is clear that it will be the raw data, and not for example, a spectrogram.

And, I would prefer using lowercase '.wav'.

@janscience janscience merged commit cce06f1 into bendalab:master Nov 22, 2018
janscience added a commit to janscience/thunderfish that referenced this pull request May 13, 2020
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