def has_axon(neuron, treefun=_read_neurite_type):
    '''Check if a neuron has an axon

    Arguments:
        neuron(Neuron): The neuron object to test
        treefun: Optional function to calculate the tree type of
        neuron's neurites

    Returns:
        CheckResult with result
    '''
    return CheckResult(NeuriteType.axon in (treefun(n) for n in neuron.neurites))
def has_axon ( neuron , treefun = _read_neurite_type ) : return CheckResult ( NeuriteType . axon in ( treefun ( n ) for n in neuron . neurites ) )
Check if a neuron has an axon

    Arguments:
        neuron(Neuron): The neuron object to test
        treefun: Optional function to calculate the tree type of
        neuron's neurites

    Returns:
        CheckResult with result