Skip to content

Commit

Permalink
Fix compute_rtfs arguments (#737)
Browse files Browse the repository at this point in the history
Signed-off-by: Caio Amaral <[email protected]>
  • Loading branch information
caioaamaral authored Apr 6, 2021
1 parent 8567614 commit 4e69556
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/performance/ign_perf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand Down

0 comments on commit 4e69556

Please sign in to comment.