def has_all_nonzero_segment_lengths(neuron, threshold=<NUM_LIT:0.0>):
bad_ids = []<EOL>for sec in _nf.iter_sections(neuron):<EOL><INDENT>p = sec.points<EOL>for i, s in enumerate(zip(p[:-<NUM_LIT:1>], p[<NUM_LIT:1>:])):<EOL><INDENT>if segment_length(s) <= threshold:<EOL><INDENT>bad_ids.append((sec.id, i))<EOL><DEDENT><DEDENT><DEDENT>return CheckResult(len(bad_ids) == <NUM_LIT:0>, bad_ids)<EOL>
Check presence of neuron segments with length not above threshold

    Arguments:
        neuron(Neuron): The neuron object to test
        threshold(float): value above which a segment length is considered to
        be non-zero

    Returns:
        CheckResult with result including list of (section_id, segment_id)
        of zero length segments