unienv_interface.transformations.filter_dict¶
DictIncludeKeyTransformation
¶
DictIncludeKeyTransformation(enabled_keys: Iterable[str], *, ignore_missing_keys: bool = False, nested_separator: str = '/')
Bases: DataTransformation
serialize
¶
serialize(source_space: Optional[Space[Any, BDeviceType, BDtypeType, BRNGType]] = None) -> Dict[str, Any]
deserialize_from
classmethod
¶
deserialize_from(json_data: Dict[str, Any], source_space: Optional[Space[Any, BDeviceType, BDtypeType, BRNGType]] = None) -> DictIncludeKeyTransformation
direction_inverse
¶
direction_inverse(source_space: Optional[Space[SourceDataT, SourceBDeviceT, SourceBDTypeT, SourceBDRNGT]] = None) -> Optional[DataTransformation]
Return the inverse transformation when one exists.
DictExcludeKeyTransformation
¶
DictExcludeKeyTransformation(excluded_keys: Iterable[str], *, ignore_missing_keys: bool = False, nested_separator: str = '/')
Bases: DataTransformation
serialize
¶
serialize(source_space: Optional[Space[Any, BDeviceType, BDtypeType, BRNGType]] = None) -> Dict[str, Any]
deserialize_from
classmethod
¶
deserialize_from(json_data: Dict[str, Any], source_space: Optional[Space[Any, BDeviceType, BDtypeType, BRNGType]] = None) -> DictExcludeKeyTransformation
direction_inverse
¶
direction_inverse(source_space: Optional[Space[SourceDataT, SourceBDeviceT, SourceBDTypeT, SourceBDRNGT]] = None) -> Optional[DataTransformation]
Return the inverse transformation when one exists.
exclude_chained_key_in_dict
¶
exclude_chained_key_in_dict(d: Union[Dict[str, Any], DictSpace[BDeviceType, BDtypeType, BRNGType]], chained_key: List[str], /, ignore_missing_keys: bool = False) -> Union[Dict[str, Any], DictSpace[BDeviceType, BDtypeType, BRNGType]]
include_chained_key_in_dict
¶
include_chained_key_in_dict(d: Union[Dict[str, Any], DictSpace[BDeviceType, BDtypeType, BRNGType]], chained_key: List[str], *, target_d: Optional[Union[Dict[str, Any], DictSpace[BDeviceType, BDtypeType, BRNGType]]] = None, ignore_missing_keys: bool = False) -> Union[Dict[str, Any], DictSpace[BDeviceType, BDtypeType, BRNGType]]