Skip to content
Snippets Groups Projects
Commit d9679529 authored by Maximilian Schmidt's avatar Maximilian Schmidt
Browse files

Remove data_wrapper

parent 29b3c034
No related branches found
No related tags found
1 merge request!1Add all necessary files for the multi-area model
import copy
import data_wrapper.data_wrapper as dw
import multiprocessing as mp
import numpy as np
import os
......@@ -90,7 +89,8 @@ def save_iteration(step, data):
os.mkdir(data_dir)
except FileExistsError:
pass
dw.save('iteration_{}'.format(step), data)
for key in ['parameters', 'K_prime', 'results']:
np.save('iteration_{}/{}.npy'.format(step, key), data[key])
def load_iteration(step):
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment