From 0c5baabf584425c75ba0026382896d737f60cae1 Mon Sep 17 00:00:00 2001 From: Lionel GUEZ <guez@lmd.ens.fr> Date: Thu, 23 Nov 2023 21:52:14 +0100 Subject: [PATCH] Save orientation of eddies in `expanded_traj.json` --- Trajectories/trajectories.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Trajectories/trajectories.py b/Trajectories/trajectories.py index 2ae477f6..8458a3ab 100755 --- a/Trajectories/trajectories.py +++ b/Trajectories/trajectories.py @@ -203,7 +203,8 @@ with open("traj_segm.json", "w") as outfile: print("Created traj_segm.json.") with open("expanded_traj.json", "w") as outfile: - json.dump({"e_overestim": g.gp.e_overestim, "traj": expanded_traj}, + json.dump({"orientation": g.gp.orientation, + "e_overestim": g.gp.e_overestim, "traj": expanded_traj}, outfile, separators = (',', ':')) print("Created expanded_traj.json.") -- GitLab