INNER CODE UNIT · Python
_update_transforms
lgienapp/aquarel · aquarel/theme.py:264
def _update_transforms(self, value_dict):
"""
Updates the transforms of the theme.
:param value_dict: dictionary of transform names and args
"""
# Filter unset attributes and attributes not in the base transform template
transforms = dict(
filter(
lambda x: (x[0] in self._transform_mapping.keys())
and (x[1] is not None),
value_dict.items(),
)
)
self.transforms = transforms
def save(self, path: str):
"""