def write_fid_readback(dic, data, shape, torder):
    tf = tempfile.mktemp(dir=".")
    ng.varian.write_fid(tf, dic, data, torder=torder)
    rdic, rdata = ng.varian.read_fid(tf, shape=shape, torder=torder)
    os.remove(tf)
    assert_array_equal(data, rdata)
    assert dic == rdic
p is the factor for dropping a unit
dataset/ETHPy150Open jjhelmus/nmrglue/tests/test_agilent.py/write_fid_readback--crossover with--dataset/ETHPy150Open yajiemiao/pdnn/layers/mlp_maxout.py/_dropout_from_layer