def setter(value, dim_x, dim_y):
    v = array(value, dtype=float)
    if v.shape != (dim_x, dim_y):
        raise Exception('must have shape ({},{})'.format(dim_x, dim_y))
    return v
Returns a copy of 'value' as an numpy.array with dtype=float. Throws
dataset/ETHPy150Open rlabbe/filterpy/filterpy/common/helpers.py/setter