From 122b78b64533a7e36bb02b70bf74068d81f3d1ba Mon Sep 17 00:00:00 2001
From: Lionel GUEZ <guez@lmd.ens.fr>
Date: Tue, 20 Feb 2024 18:34:21 +0100
Subject: [PATCH] Use specific names for output files

These files will usually be created in the same directory.
---
 Trajectories/cost_function.py | 2 +-
 Trajectories/trajectories.py  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/Trajectories/cost_function.py b/Trajectories/cost_function.py
index 6446c497..0aa254cb 100755
--- a/Trajectories/cost_function.py
+++ b/Trajectories/cost_function.py
@@ -105,7 +105,7 @@ def node_to_prop(node_list, e_overestim, SHPC, orientation):
 
 
 t0 = time.perf_counter()
-timings = open("timings.txt", "w")
+timings = open("timings_cost.txt", "w")
 parser = argparse.ArgumentParser()
 parser.add_argument("SHPC_dir")
 parser.add_argument("orientation", choices=["Anticyclones", "Cyclones"])
diff --git a/Trajectories/trajectories.py b/Trajectories/trajectories.py
index 99eaf2dc..1cfc9911 100755
--- a/Trajectories/trajectories.py
+++ b/Trajectories/trajectories.py
@@ -33,7 +33,7 @@ def new_traj(ind_traj, traj_prop, n, traj_vert_ind):
 
 
 t0 = time.perf_counter()
-timings_file = open("timings.txt", "w")
+timings_file = open("timings_trajectories.txt", "w")
 if len(sys.argv) != 2:
     sys.exit("Required argument: input-graph")
 g = graph_tool.load_graph(sys.argv[1])
-- 
GitLab