From 3b8666f449c2657c84fb537b2730f3468ef671c5 Mon Sep 17 00:00:00 2001 From: Cristian C Lalescu <Cristian.Lalescu@ds.mpg.de> Date: Sun, 31 Jan 2016 21:39:46 +0100 Subject: [PATCH] fix tests/base.comparison_stats() --- tests/base.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/base.py b/tests/base.py index 712b5a24..7b75080a 100644 --- a/tests/base.py +++ b/tests/base.py @@ -191,7 +191,8 @@ def compare_stats( for i in range(c0.particle_species): print('maximum traj difference species {0} is {1}'.format( i, - np.max(np.abs(c0.trajectories[i] - c1.trajectories[i])))) + np.max(np.abs(c0.get_particle_file()['tracers{0}/state'.format(i)][:] - + c1.get_particle_file()['tracers{0}/state'.format(i)][:])))) if plots_on: # plot energy and enstrophy fig = plt.figure(figsize = (12, 12)) -- GitLab