single_cell_parserparametersNTParameterSettree_copy

NTParameterSet.tree_copy

single_cell_parser.parameters.NTParameterSet.tree_copy()

Return a copy of the ParameterSet tree structure.

Nodes are not copied, but re-referenced. This creates a shallow copy of the tree structure where the hierarchy is duplicated but the leaf values are shared between original and copy.

Returns:

A new NTParameterSet with the same structure but shared references to leaf values.

Return type:

NTParameterSet