on_config_change

hcipy.config.on_config_change(func)[source]

Decorator that registers func to be called whenever (any part of) the configuration is assigned a value or reloaded by Configuration().reset().