Create odd and even partitions based on a sample attribute.
The partitioner yields two datasets. In the first set all odd chunks are labeled ‘1’ and all even runs are labeled ‘2’. In the second set the assignment is reversed (odd: ‘2’, even: ‘1’).
Notes
Available conditional attributes:
(Conditional attributes enabled by default suffixed with +)
Methods
generate(ds) | |
get_partition_specs(ds) | Returns the specs for all to be generated partition sets. |
get_partitions_attr(ds, specs) | Create a partition attribute array for a particular partition spec. |
get_postproc() | Returns the post-processing node or None. |
get_selected_indexes(n_cfgs) | A naive selection of indexes according to strategy and count |
get_space() | Query the processing space name of this node. |
reset() | |
set_postproc(node) | Assigns a post-processing node |
set_space(name) | Set the processing space name of this node. |
Parameters: | usevalues : bool
enable_ca : None or list of str
disable_ca : None or list of str
count : None or int
selection_strategy : str
attr : str
space : str
pass_attr : str, list of str|tuple, optional
postproc : Node instance, optional
descr : str
|
---|
Methods
generate(ds) | |
get_partition_specs(ds) | Returns the specs for all to be generated partition sets. |
get_partitions_attr(ds, specs) | Create a partition attribute array for a particular partition spec. |
get_postproc() | Returns the post-processing node or None. |
get_selected_indexes(n_cfgs) | A naive selection of indexes according to strategy and count |
get_space() | Query the processing space name of this node. |
reset() | |
set_postproc(node) | Assigns a post-processing node |
set_space(name) | Set the processing space name of this node. |