@staticmethod
def default2zero(n, mods):
    """
        Pads the ``mods`` list with zeros resulting in an
        list of length n.

        :param n: Length of the resulting list.
        :type n: int
        :param mods: List to be padded.
        :type mods: list
        :return: Zero-padded list.
        :rtype: list
        """
    x = [0.0] * n
    na = len(mods)
    x[0:na] = mods
    return x
