BrianGlobalPreferencesView class

(Shortest import: from brian2.core.preferences import BrianGlobalPreferencesView)

class brian2.core.preferences.BrianGlobalPreferencesView(basename, all_prefs)[source]

Bases: MutableMapping

A class allowing for accessing preferences in a subcategory. It forwards requests to BrianGlobalPreferences and provides documentation and autocompletion support for all preferences in the given category. This object is used to allow accessing preferences via attributes of the prefs object.