Commit 3b8666f4 authored by Cristian Lalescu's avatar Cristian Lalescu
Browse files

fix tests/base.comparison_stats()

parent 25383a84
......@@ -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))
......
Supports Markdown
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