Test
This commit is contained in:
parent
000dc43d22
commit
a9bb90e61b
|
@ -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
Loading…
Reference in a new issue