/usr/share/pyshared/brian_unit_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 19 20 21 22 23 24 25 26 27 | """This module is used by the package Brian for turning units on and off.
For the user, you can ignore this unless you want to turn units off,
in which case you simply put at the top of your program (before
importing anything from brian):
from brian_unit_prefs import turn_off_units
turn_off_units()
Or to turn units off and not have a warning printed:
from brian_unit_prefs import turn_off_units
turn_off_units(warn=False)
"""
class _unit_prefs():
pass
bup = _unit_prefs()
bup.use_units = True
bup.warn_about_units = True
def turn_off_units(warn=True):
bup.use_units = False
bup.warn_about_units = warn
|