def _wrapper(bifurcation_point): '''Simply pass arguments to wrapped function''' if not as_tree: bifurcation_point = tr.as_elements(bifurcation_point) return fun(bifurcation_point)
def _wrapper(triplet): '''Simply pass arguments to wrapped function''' if not as_tree: triplet = tr.as_elements(triplet) return fun(triplet)
def _wrapper(section): '''Simply pass arguments to wrapped function''' if not as_tree: section = tr.as_elements(section) return fun(section)
def _wrapper(point): '''Simply pass arguments to wrapped function''' if not as_tree: point = tr.as_elements(point) return fun(point)