Browse Source

Add integer time data points to the core-time tradeoff output

Ian Goldberg 1 year ago
parent
commit
4139cd49db
1 changed files with 4 additions and 0 deletions
  1. 4 0
      core-time-tradeoff

+ 4 - 0
core-time-tradeoff

@@ -33,6 +33,10 @@ pub_times = [ ( int(row['M']),
 # Sort the list of all times appearing in the data
 all_times = sorted([ tpl[1] for tpl in priv_times + pub_times ])
 
+# Put integer times in there as well
+max_int_time = int(all_times[-1])
+all_times = sorted(all_times + [t for t in range(1,max_int_time+1)])
+
 # Interpolate 4 points between each pair of points in the sorted list
 # and flatten the result
 interp_times = [ x for xs in