paramspace.yaml_representers module¶
This module implements custom YAML representer functions
-
paramspace.yaml_representers._slice_representer(representer, node: slice)[source]¶ Represents a Python slice object using the
!sliceYAML tag.- Parameters
representer (ruamel.yaml.representer) – The representer module
node (slice) – The node, i.e. a slice instance
- Returns
a yaml sequence that is able to recreate a slice
-
paramspace.yaml_representers._range_representer(representer, node: range)[source]¶ Represents a Python range object using the
!rangeYAML tag.- Parameters
representer (ruamel.yaml.representer) – The representer module
node (range) – The node, i.e. a range instance
- Returns
a yaml sequence that is able to recreate a range