auditory input
I added some means to listen to the recorded noise samples. This might help to debug setups, especially hunting for 50Hz noise, in the case of not being able to see and observe the plot. The play option should allow the scientist to also use another sense: their ears.
from tempfile import mkdtemp
from pathlib import Path
from python_spectrometer import Spectrometer
from python_spectrometer.daq import QoptColoredNoise
def spectrum(f, A=1e-4, exp=1.5, **_):
return A/f**exp
daq = QoptColoredNoise(spectrum)
spect = Spectrometer(daq, savepath=mkdtemp(), play_sound=True)
#%%
spect.take('a comment', f_max=20000, A=2e-4)
Merge request reports
Activity
added 1 commit
- f1d94ed1 - added documentation and a attribute for fixed normalizations
requested review from @tobias.hangleiter
- Resolved by Paul Surrey
Let's rebase this once !24 (merged) is merged.
- Resolved by Paul Surrey
- Resolved by Paul Surrey
- Resolved by Paul Surrey
- Resolved by Paul Surrey
- Resolved by Paul Surrey
- Resolved by Paul Surrey
- Resolved by Paul Surrey
- Resolved by Tobias Hangleiter
- Resolved by Tobias Hangleiter
- Resolved by Paul Surrey
- Resolved by Paul Surrey
- Resolved by Paul Surrey
- Resolved by Tobias Hangleiter
- Resolved by Paul Surrey
Please register or sign in to reply