Class: Wrnap::Package::FftEq
- Defined in:
- lib/wrnap/package/fft_eq.rb
Instance Attribute Summary collapse
-
#equilibrium ⇒ Object
readonly
Returns the value of attribute equilibrium.
Attributes inherited from Base
#data, #flags, #response, #runtime
Instance Method Summary collapse
Methods inherited from FftEqBase
Methods inherited from Base
bootstrap, #debugger, #initialize, #inspect
Methods included from Global::Yaml
Methods included from Global::Chainer
Methods included from Global::Runner
Constructor Details
This class inherits a constructor from Wrnap::Package::Base
Instance Attribute Details
#equilibrium ⇒ Object (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_process ⇒ Object
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 |