from brian2.core.preferences import check_preference_name)
Make sure that a preference name is valid. This currently checks that the name does not contain illegal characters and does not clash with method names such as “keys” or “items”.
name : str
The name to check.
- In case the name is invalid.