From 4e6955624a956518d18291e05f6680bdc595a74e Mon Sep 17 00:00:00 2001 From: Caio Amaral Date: Tue, 6 Apr 2021 03:20:43 +0200 Subject: [PATCH] Fix compute_rtfs arguments (#737) Signed-off-by: Caio Amaral --- test/performance/ign_perf.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/performance/ign_perf.py b/test/performance/ign_perf.py index 3856ef9f8c..ae0921b7ed 100755 --- a/test/performance/ign_perf.py +++ b/test/performance/ign_perf.py @@ -19,7 +19,7 @@ def read_data(filename): entries.append([float(r) for r in row]) return (header, np.array(entries)) -def compute_rtfs(data): +def compute_rtfs(real_time, sim_time): # Compute time deltas real_dt = np.diff(real_time) sim_dt = np.diff(sim_time) @@ -40,7 +40,7 @@ def compute_rtfs(data): real_time = data[:,0] + 1e-9 * data[:,1] sim_time = data[:,2] + 1e-9 * data[:,3] - rtfs = compute_rtfs(data) + rtfs = compute_rtfs(real_time, sim_time) if args.summarize: iters = len(data)