示例#1
0
文件: test_io.py 项目: haal9751/orix
def test_loadctf():
    """ Crude test of the ctf loader """
    z = np.random.rand(100, 8)
    fname = "temp.ctf"
    np.savetxt(fname, z)

    _ = loadctf(fname)
    os.remove(fname)
示例#2
0
文件: test_io.py 项目: shogas/orix
def test_load_ctf():
    """ Crude test of the ctf loader """
    z = np.random.rand(100, 8)
    np.savetxt('temp.ctf', z)
    z_loaded = io.loadctf('temp.ctf')
    os.remove('temp.ctf')