Module: CodeRunner::Trinity::TrinityComponent
Defined Under Namespace
Instance Attribute Summary collapse
-
#trinity_run ⇒ Object
Returns the value of attribute trinity_run.
Instance Method Summary collapse
-
#dup ⇒ Object
‘aa’.
-
#error_file ⇒ Object
‘aa’.
- #initialize(runner, trinity_run) ⇒ Object
- #output_file ⇒ Object
- #save ⇒ Object
Instance Attribute Details
#trinity_run ⇒ Object
Returns the value of attribute trinity_run.
12 13 14 |
# File 'lib/trinitycrmod/trinity_gs2.rb', line 12 def trinity_run @trinity_run end |
Instance Method Details
#dup ⇒ Object
‘aa’
27 28 29 |
# File 'lib/trinitycrmod/trinity_gs2.rb', line 27 def dup return self.class.new(@runner, @trinity_run).learn_from(self) end |
#error_file ⇒ Object
‘aa’
23 24 25 26 |
# File 'lib/trinitycrmod/trinity_gs2.rb', line 23 def error_file '../' + @trinity_run.error_file #'aa' end |
#initialize(runner, trinity_run) ⇒ Object
13 14 15 16 17 |
# File 'lib/trinitycrmod/trinity_gs2.rb', line 13 def initialize(runner, trinity_run) super(runner) @trinity_run = trinity_run self end |
#output_file ⇒ Object
18 19 20 21 22 |
# File 'lib/trinitycrmod/trinity_gs2.rb', line 18 def output_file #@output_file ||= '../' + self.class.to_s '../' + @trinity_run.output_file #'aa' end |
#save ⇒ Object
30 31 32 33 34 35 36 37 38 39 40 41 |
# File 'lib/trinitycrmod/trinity_gs2.rb', line 30 def save #p ['output_file', output_file] #p ['ancestors', self.class.ancestors] trinrun, @trinity_run = @trinity_run, nil component_runs.each{|cr| cr.trinity_run = nil} #@trinity_run = nil #@output_file = nil #GC.start #p self.instance_variables.find_all{|v| instance_variable_get(v).class.to_s =~ /NumRu::NetCDF/} super @trinity_run = trinrun end |