def eqtflength(b,a):
d = abs(len(b)-len(a))<EOL>if d != <NUM_LIT:0>:<EOL><INDENT>if len(a) > len(b):<EOL><INDENT>try:<EOL><INDENT>b.extend([<NUM_LIT:0.>]*d)<EOL><DEDENT>except:<EOL><INDENT>b = np.append(b, [<NUM_LIT:0>]*d)<EOL><DEDENT><DEDENT>elif len(b)>len(a):<EOL><INDENT>try:<EOL><INDENT>a.extend([<NUM_LIT:0.>]*d)<EOL><DEDENT>except:<EOL><INDENT>a = np.append(a, [<NUM_LIT:0>]*d)<EOL><DEDENT><DEDENT>return b,a<EOL><DEDENT>else:<EOL><INDENT>return b,a<EOL><DEDENT>
Given two list or arrays, pad with zeros the shortest array

    :param b: list or array
    :param a: list or array


    .. doctest::

        >>> from spectrum.transfer import eqtflength
        >>> a = [1,2]
        >>> b = [1,2,3,4]
        >>> a, b, = eqtflength(a,b)