def make_slices(data, win_size):
    rows = data.shape[0] - win_size[0] + 1
    cols = data.shape[1] - win_size[1] + 1
    slices = []
    for i in range(win_size[0]):
        for j in range(win_size[1]):
            slices.append(data[i:rows+i, j:cols+j])
    return slices
Saves the disk layout.
dataset/ETHPy150Open cgarrard/osgeopy-code/ospybook/ospybook/__init__.py/make_slices--crossover with--dataset/ETHPy150Open openstack/ironic/ironic/drivers/modules/iscsi_deploy.py/_save_disk_layout