unienv_interface.transformations.flatten_dict_transform¶
Classes:
| Name | Description |
|---|---|
FlattenDictTransformation |
|
UnflattenDictTransformation |
|
Functions:
| Name | Description |
|---|---|
flatten_nested_mapping |
|
unflatten_mapping |
|
FlattenDictTransformation
¶
Bases: DataTransformation
Methods:
| Name | Description |
|---|---|
get_target_space_from_source |
|
transform |
|
direction_inverse |
|
serialize |
|
deserialize_from |
|
close |
|
Attributes:
| Name | Type | Description |
|---|---|---|
has_inverse |
|
|
nested_separator |
|
get_target_space_from_source
¶
get_target_space_from_source(
source_space: DictSpace[BDeviceType, BDtypeType, BRNGType],
) -> DictSpace[BDeviceType, BDtypeType, BRNGType]
transform
¶
transform(
source_space: Space, data: Union[Mapping[str, Any], BArrayType]
) -> Union[Mapping[str, Any], BArrayType]
direction_inverse
¶
direction_inverse(source_space: Optional[Space] = None) -> UnflattenDictTransformation
deserialize_from
classmethod
¶
deserialize_from(
json_data: Dict[str, Any], source_space: Optional[Space] = None
) -> FlattenDictTransformation
UnflattenDictTransformation
¶
Bases: DataTransformation
Methods:
| Name | Description |
|---|---|
get_target_space_from_source |
|
transform |
|
direction_inverse |
|
serialize |
|
deserialize_from |
|
close |
|
Attributes:
| Name | Type | Description |
|---|---|---|
has_inverse |
|
|
nested_separator |
|
get_target_space_from_source
¶
get_target_space_from_source(
source_space: DictSpace[BDeviceType, BDtypeType, BRNGType],
) -> DictSpace[BDeviceType, BDtypeType, BRNGType]
transform
¶
transform(
source_space: Space, data: Union[Mapping[str, Any], BArrayType]
) -> Union[Mapping[str, Any], BArrayType]
direction_inverse
¶
direction_inverse(source_space: Optional[Space] = None) -> FlattenDictTransformation
deserialize_from
classmethod
¶
deserialize_from(
json_data: Dict[str, Any], source_space: Optional[Space] = None
) -> UnflattenDictTransformation