INNER CODE UNIT · Python
_update_params
lgienapp/aquarel · aquarel/theme.py:241
def _update_params(self, param_key, value_dict):
"""
Updates the parameters of the theme.
:param param_key: the parameter key to modify
:param value_dict: the value dict to update the parameter key with
"""
# Filter unset attributes and attributes not in the base style template
value_dict = dict(
filter(
lambda x: (x[0] in self._rcparams_mapping[param_key].keys())
and (x[1] is not None),
value_dict.items(),
)
)
# Overwrite parameters with supplied values
if param_key in self.params.keys():
# Update existing options if already specified