def test_masked():
    """ Test masked numpy array """
    filename, mode = 'test.h5', 'w'    
    a = np.ma.array([1,2,3,4], dtype='float32', mask=[0,1,0,0])
    
    dump(a, filename, mode)
    a_hkl = load(filename)
    
    try:
        assert a_hkl.dtype == a.dtype
        assert np.all((a_hkl, a))
        os.remove(filename)
    except __HOLE__:
        os.remove(filename)
        print a_hkl
        print a
        raise
dataset/ETHPy150Open telegraphic/hickle/tests/test_hickle.py/test_masked