Expand description
nD-aware nodeset folding honoring a fold-axis constraint (--axis).
Ports the ClusterShell pieces needed by upstream commit 6ed71ac (GH#356):
parse_fold_axisโ port ofCLI/Utils.py::parse_fold_axis, translating a 1-indexed command-line--axisvalue into 0-indexed axes suitable forNodeSet.fold_axis/Defaults.fold_axis.fold_nodesโ port ofNodeSetBase.__str__+_iter_nd_patrendering on top ofRangeSetNDvector folding (_fold_univariate/_fold_multivariate_merge). The coreNodeSeteagerly expands multidimensional patterns, so the nD-aware folding needed for gathered output display is reimplemented here from the raw node-name list.
Functionsยง
- fold_
nodes - Fold a list of node names into compact bracket notation, honoring a fold-axis constraint.
- parse_
fold_ axis - Port of
CLI/Utils.py::parse_fold_axis.