This commit is contained in:
Oliver Kennedy 2017-09-13 01:10:31 -04:00
parent 000dc43d22
commit a9bb90e61b
2 changed files with 3 additions and 3 deletions

View file

@ -11,8 +11,8 @@ p headers
ret = input.map do |l|
(0..(l.length / 2).floor).map do |i|
{ x: l[i*2], y: l[i*2+1], c: i } if l[i*2] != ""
end.compact.flatten(1)
end
end.compact
end.flatten
File.open("predictions.json", "w+") do |f|
f.puts(ret.to_json)
end

File diff suppressed because one or more lines are too long