Change test_output data structure to dict of dict
@@ -17,14 +17,17 @@ def main():
if test_name not in test_outputs.keys():
N, iterations, expected_rate, Cext_0, Time = run_convergence(
mesh, test_name, problem_folder, param)
- test_outputs[test_name] = [N, iterations, expected_rate, Cext_0, Time]
-
+ test_outputs[test_name] = {'N': N, 'iterations': iterations,
+ 'expected_rate': expected_rate, 'Cext_0': Cext_0,
+ 'Time': Time}
picklesave(test_outputs)
# load data for analysis
- N, iterations, expected_rate = test_outputs['sphere_complex'][:3]
- Cext_0 = test_outputs['sphere_complex'][3]
- Time = test_outputs['sphere_complex'][-1]
+ N = test_outputs['sphere_complex']['N']
+ iterations = test_outputs['sphere_complex']['iterations']
+ expected_rate = test_outputs['sphere_complex']['expected_rate']
+ Cext_0 = test_outputs['sphere_complex']['Cext_0']
+ Time = test_outputs['sphere_complex']['Time']
total_time = Time
