def test_embedded_array():
    
    d_orig = [[np.array([10., 20.]), np.array([10, 20, 30])], [np.array([10, 2]), np.array([1.])]]
    hickle.dump(d_orig, 'test.h5')
    d_hkl = hickle.load('test.h5')
    
    for ii, xx in enumerate(d_orig):
        for jj, yy in enumerate(xx):
            assert np.allclose(d_orig[ii][jj], d_hkl[ii][jj])
    
    print d_hkl
    print d_orig


################
## NEW TESTS  ##
################
See https://github.com/telegraphic/hickle/issues/24
dataset/ETHPy150Open telegraphic/hickle/tests/test_hickle.py/test_embedded_array