Method: CodeRunner#graphkit_from_lists_with_frame_array

Defined in:
lib/coderunner/graphs_and_films.rb

#graphkit_from_lists_with_frame_array(frame_array, graphs, run_graphs, extra_options = {}) ⇒ Object



390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
# File 'lib/coderunner/graphs_and_films.rb', line 390

def graphkit_from_lists_with_frame_array(frame_array, graphs, run_graphs, extra_options = {})
	server = @server; @server = false
# 		ep "Frame array to calculate is", frame_array, "\n\n"
	i=0
	array = frame_array.map do |frame_index|
# 			if print_message
			eputs "\033[2A" # Terminal jargon - go back one line
			eputs sprintf("Fetching graphs: %2.2f", i.to_f/frame_array.size.to_f * 100.0) + "% Complete"
# 			end
		i+=1
		[frame_index, graphkit_from_lists(graphs, run_graphs, extra_options.absorb({(extra_options[:in]||extra_options[:index_name]||:frame_index) => frame_index}))]
	end
# 		eputs Marshal.load(Marshal.dump(array)).pretty_inspect
	#Kernel.puts server_dump(array) if server
	return array
end