lib/experiment.rb in expetable-0.2.3 vs lib/experiment.rb in expetable-0.2.4
- old
+ new
@@ -84,10 +84,14 @@
@list.each_with_index do |item, i|
fake_name = item[:fake_phy].nil? ? "-" : File.basename(item[:fake_phy])
initial_name = item[:initial_phy].nil? ? "-" : File.basename(item[:initial_phy])
parsi_size = item[:parsi_size] || "?"
bunch_size = item[:bunch_size] || "?"
- puts "#{i}\t#{item[:name]}\t fake: #{fake_name} \t init: #{initial_name} Best LH: #{item["bestLH"]} (out of parsi #{parsi_size}, bunch end size #{bunch_size})"
+ str = "#{i}\t#{item[:name]}"
+ str += " \tinit: #{initial_name}" unless initial_name.empty?
+ str += " \tfake: #{fake_name}" unless fake_name.empty?
+ str += " Best LH: #{item["bestLH"]} (parsi #{parsi_size}, bunch end size #{bunch_size})"
+ puts str
item.keys.select{|k| k =~ /^u\d+$/}.sort.each do |update_key|
puts " #{update_key}: #{item[update_key]}"
end
end
end