Example #1
0
def test_CrystallographicMap_io(maps):
    maps.save_mtex_map('file_01.txt')
    lmap = load_mtex_map('file_01.txt')
    os.remove('file_01.txt')
    # remember we've dropped reliability in saving
    assert np.allclose(maps.data[:, :, :5], lmap.data)
Example #2
0
def worker_for_test_CrystallographicMap_io(mapp):
    mapp.save_mtex_map('file_01.txt')
    lmap = load_mtex_map('file_01.txt')
    os.remove('file_01.txt')
    return mapp, lmap
Example #3
0
def worker_for_test_CrystallographicMap_io(mapp):
    mapp.save_mtex_map('file_01.txt')
    lmap = load_mtex_map('file_01.txt')
    os.remove('file_01.txt')
    # remember we've dropped reliability in saving
    return mapp.data[:, :, :5], lmap.data