def setter_1d(value, dim_x):

    v = array(value, dtype=float)
    shape = v.shape
    if shape[0] != (dim_x) or v.ndim > 2 or (v.ndim==2 and shape[1] != 1):
        raise Exception('has shape {}, must have shape ({},{})'.format(shape, dim_x, 1))
    return v
Regression test for #679
dataset/ETHPy150Open rlabbe/filterpy/filterpy/common/helpers.py/setter_1d--crossover with--dataset/ETHPy150Open scipy/scipy/scipy/special/tests/test_basic.py/TestStruve.test_regression_679