From 770ea2ae873d52cd7d867d0a8abbd929602bf3fe Mon Sep 17 00:00:00 2001 From: Caio Amaral Date: Thu, 1 Apr 2021 19:58:38 -0300 Subject: [PATCH] Fix compute_rtfs arguments 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)