/usr/share/pyshared/brian/hears/prefs.py is in python-brian 1.4.1-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | from brian import *
__all__ = ['get_samplerate', 'set_default_samplerate']
default_samplerate = 44.1*kHz
def get_samplerate(samplerate):
if samplerate is None:
return default_samplerate
else:
return samplerate
def set_default_samplerate(samplerate):
'''
Sets the default samplerate for Brian hears objects, by default 44.1 kHz.
'''
global default_samplerate
default_samplerate = samplerate
|