Skip to content
Snippets Groups Projects
Commit 09943179 authored by Lionel GUEZ's avatar Lionel GUEZ
Browse files

Rename variable trajectories to `expanded_traj`

parent de12566d
No related branches found
No related tags found
No related merge requests found
...@@ -60,9 +60,9 @@ if __name__ == "__main__": ...@@ -60,9 +60,9 @@ if __name__ == "__main__":
args = parser.parse_args() args = parser.parse_args()
with open(args.expanded_traj) as f: with open(args.expanded_traj) as f:
trajectories = json.load(f) expanded_traj = json.load(f)
print("Number of trajectories:", len(trajectories)) print("Number of trajectories:", len(expanded_traj))
with open(args.e_overestim) as f: with open(args.e_overestim) as f:
e_overestim = int(f.read()) e_overestim = int(f.read())
...@@ -74,7 +74,7 @@ if __name__ == "__main__": ...@@ -74,7 +74,7 @@ if __name__ == "__main__":
random.seed(0) random.seed(0)
n_long_traj = 0 n_long_traj = 0
for traj in trajectories: for traj in expanded_traj:
if args.min_duration > 1: if args.min_duration > 1:
duration = report_graph.node_to_date_eddy(traj[- 1], e_overestim, duration = report_graph.node_to_date_eddy(traj[- 1], e_overestim,
only_date = True) \ only_date = True) \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment