diff --git a/Trajectories/Analysis/long_trajectories.py b/Trajectories/Analysis/long_trajectories.py index 82ab85d0ca284041a113694f01e2fa0c13540639..6504a5d52cc675529515cfa5945102bf00442100 100755 --- a/Trajectories/Analysis/long_trajectories.py +++ b/Trajectories/Analysis/long_trajectories.py @@ -20,11 +20,11 @@ SHPC = util_eddies.SHPC_class( "/data/guez/Oceanic_eddies/Eurec4A/SHPC", "Anticyclones" ) min_duration = 16 * 7 -orientation = input("Orientation?") with open(sys.argv[1]) as f_obj: expanded_traj = json.load(f_obj) +orientation = expanded_traj["orientation"] traj_list = expanded_traj["traj"].values() duration_array = plot_traj.get_duration(traj_list, expanded_traj["e_overestim"]) diff --git a/Trajectories/Tests/tests.json b/Trajectories/Tests/tests.json index 0d239e839b071b19c56929a5b87708365ff4dd3e..341c1d27fc6c7b2a2d204d92525a32357738f4b9 100644 --- a/Trajectories/Tests/tests.json +++ b/Trajectories/Tests/tests.json @@ -317,7 +317,6 @@ "command": [ "$src_dir/Trajectories/Analysis/long_trajectories.py", "$my_data_dir/Eurec4A/Graph_anti/expanded_traj.json" - ], - "input": "Anticyclones\n" + ] } }