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)
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
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