neat.MorphTree.set_default_tree

MorphTree.set_default_tree(default: Literal['original', 'computational'] = 'original')[source]

Set either the ‘original’ or ‘computatianal’ tree as the default one. Note that this function should be used outside as_computational_tree() and as_original_tree() context managers, otherwise the default will not be stored.

Parameters:

default (Literal['original', 'computational'], optional) – The tree to set as default, by default ‘original’.

Raises:

ValueError – For incorrect argument