def generate_box_support(sup_radius, shape_v):
    slc_list = [slice(s//2 - sup_radius, s//2 + sup_radius) for s in shape_v]
    sup = np.zeros(shape_v)
    sup[slc_list] = 1
    return sup
Test that model_formset respects fields and exclude parameters of
dataset/ETHPy150Open scikit-beam/scikit-beam/skbeam/core/cdi.py/generate_box_support--crossover with--dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.5/tests/modeltests/model_formsets/tests.py/ModelFormsetTest.test_custom_form