class Exe_CompareDeterminations
Public Class Methods
new(filepath1,filepath2,*params)
click to toggle source
Calls superclass method
CommandLine_Exe::new
# File lib/exe_comparedeterminations.rb, line 5 def initialize(filepath1,filepath2,*params) @filepath1 = filepath1 @filepath2 = filepath2 super('CompareDeterminations.py',*params) end
Public Instance Methods
generate_png(filepath)
click to toggle source
# File lib/exe_comparedeterminations.rb, line 14 def generate_png(filepath) ret_code, rundetails = run(cmd_to_print(filepath)) return ret_code, rundetails end
view()
click to toggle source
# File lib/exe_comparedeterminations.rb, line 19 def view ret_code, rundetails = run(cmd_to_view) return ret_code, rundetails end
Private Instance Methods
cmd()
click to toggle source
# File lib/exe_comparedeterminations.rb, line 35 def cmd "#{@exe_path} -p #{@filepath1} -j #{@filepath2} --use-rt-window" end
cmd_to_print(filepath)
click to toggle source
# File lib/exe_comparedeterminations.rb, line 27 def cmd_to_print(filepath) "#{cmd} --png #{filepath}" end
cmd_to_view()
click to toggle source
# File lib/exe_comparedeterminations.rb, line 31 def cmd_to_view "#{cmd} --plot" end