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’.
- #generate_run_name ⇒ Object
- #initialize(runner, trinity_run, trinity_id) ⇒ 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’
31 32 33 |
# File 'lib/trinitycrmod/trinity_gs2.rb', line 31 def dup return self.class.new(@runner, @trinity_run, @trinity_id).learn_from(self) end |
#error_file ⇒ Object
‘aa’
27 28 29 30 |
# File 'lib/trinitycrmod/trinity_gs2.rb', line 27 def error_file '../' + @trinity_run.error_file #'aa' end |
#generate_run_name ⇒ Object
19 20 21 |
# File 'lib/trinitycrmod/trinity_gs2.rb', line 19 def generate_run_name @run_name = @trinity_run.flux_run_name(@trinity_id) end |
#initialize(runner, trinity_run, trinity_id) ⇒ Object
13 14 15 16 17 18 |
# File 'lib/trinitycrmod/trinity_gs2.rb', line 13 def initialize(runner, trinity_run, trinity_id) super(runner) @trinity_run = trinity_run @trinity_id = trinity_id self end |
#output_file ⇒ Object
22 23 24 25 26 |
# File 'lib/trinitycrmod/trinity_gs2.rb', line 22 def output_file #@output_file ||= '../' + self.class.to_s '../' + @trinity_run.output_file #'aa' end |
#save ⇒ Object
34 35 36 37 38 39 40 41 42 43 44 45 |
# File 'lib/trinitycrmod/trinity_gs2.rb', line 34 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 |