Class: Wrnap::Package::FftEq

Inherits:
FftEqBase show all
Defined in:
lib/wrnap/package/fft_eq.rb

Instance Attribute Summary collapse

Attributes inherited from Base

#data, #flags, #response, #runtime

Instance Method Summary collapse

Methods inherited from FftEqBase

#run_command

Methods inherited from Base

bootstrap, #debugger, #initialize, #inspect

Methods included from Global::Yaml

#deserialize, #serialize

Methods included from Global::Chainer

included

Methods included from Global::Runner

included

Constructor Details

This class inherits a constructor from Wrnap::Package::Base

Instance Attribute Details

#equilibriumObject (readonly)

Returns the value of attribute equilibrium.



4
5
6
# File 'lib/wrnap/package/fft_eq.rb', line 4

def equilibrium
  @equilibrium
end

Instance Method Details

#post_processObject



15
16
17
18
# File 'lib/wrnap/package/fft_eq.rb', line 15

def post_process
  raw_eq_time  = (response.match(/index\tlogtime\n\d+\t(.*)\n/) || [])[1] || ""
  @equilibrium = (raw_eq_time =~ /^(|-?Infinity)$/ ? -1 : 10 ** raw_eq_time.to_f)
end