Settings
- class Settings(main_settings, sound_settings, screen_settings, touchscreen_settings, telegram_settings, directory_settings, sync_settings, server_settings, device_settings, hourly_alarm_settings, cycle_alarm_settings, session_alarm_settings, cam_framerate_settings, corridor_settings, extra_settings, controller_settings, bpod_settings, camera_settings, motor_settings, visual_settings, hidden_settings)[source]
Bases:
objectThe settings of the system. They are grouped in different categories.
- __init__(main_settings, sound_settings, screen_settings, touchscreen_settings, telegram_settings, directory_settings, sync_settings, server_settings, device_settings, hourly_alarm_settings, cycle_alarm_settings, session_alarm_settings, cam_framerate_settings, corridor_settings, extra_settings, controller_settings, bpod_settings, camera_settings, motor_settings, visual_settings, hidden_settings)[source]
Methods
__init__(main_settings, sound_settings, ...)add_new_settings()check_settings()create_factory_settings()get(key)Get the value of a setting.
get_description(key)Get the description of a setting.
get_index(key)Get the index of the value of a setting when it is a enum or list of enums
get_indices(key)Get the index of the value of a setting when it is a enum or list of enums
get_text(key)Get the string representation of the value of a setting.
get_type(key)Get the type of a setting.
get_values(key)Get the possible values of a setting when it is a enum or list of enums
print()restore_factory_settings()restore_visual_settings()set(key, value)sync()- get(key)[source]
Get the value of a setting.
- Return type:
Any
- get_description(key)[source]
Get the description of a setting.
- Return type:
str
- get_index(key)[source]
Get the index of the value of a setting when it is a enum or list of enums
- Return type:
int
- get_indices(key)[source]
Get the index of the value of a setting when it is a enum or list of enums
- Return type:
list[int]
- get_text(key)[source]
Get the string representation of the value of a setting.
- Return type:
str
- get_type(key)[source]
Get the type of a setting.
- Return type:
type|None
- get_values(key)[source]
Get the possible values of a setting when it is a enum or list of enums
- Return type:
list