def get_stride_from_chips(chips):
    """
    Stitch up chips into a full array

    Parameters
    ----------
    chips : dict
        dictionary of partition indices mapping to actual chips

    Returns
    ----------
    stride: int
        number of pixels skipped over to generate adjacent chips
    """
    keys = list(chips.keys())
    sorted_keys = sorted(keys)

    if len(sorted_keys) == 1:
        return 0

    first_key = sorted_keys[0]
    second_key = sorted_keys[1]

    stride = second_key[1] - first_key[1]
    return stride