Add single-row cut generator

This commit is contained in:
2017-04-28 22:15:10 -04:00
parent 43894daa81
commit 85bddc4e87
168 changed files with 8370 additions and 12 deletions

View File

@@ -0,0 +1,15 @@
#!/usr/bin/env ruby
require 'yaml'
yaml = YAML::load(File.open(ARGV[0]))
int_format = "%d,"
number_format = "%.2f,"
string_format = "%s,"
blank = "---,"
print int_format % yaml['n_generated_cuts']['round'][1] rescue print blank
print int_format % yaml['n_generated_cuts']['round'][2] rescue print blank
print number_format % (yaml['cut_speed']['round_1'] * 1000) rescue print blank
print number_format % (yaml['cut_speed']['round_2'] * 1000) rescue print blank
print number_format % yaml['trivial_lifting']['average_m'] rescue print blank
print "\n"