Class: ViennaRna::Package::Heat
- Defined in:
- lib/vienna_rna/package/heat.rb
Instance Attribute Summary collapse
-
#specific_heats ⇒ Object
readonly
Returns the value of attribute specific_heats.
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
bootstrap, #debugger, #initialize, #serialize
Methods included from Global::ChainExtensions
Methods included from Global::RunExtensions
Constructor Details
This class inherits a constructor from ViennaRna::Package::Base
Instance Attribute Details
#specific_heats ⇒ Object (readonly)
Returns the value of attribute specific_heats.
4 5 6 |
# File 'lib/vienna_rna/package/heat.rb', line 4 def specific_heats @specific_heats end |
Instance Method Details
#post_process ⇒ Object
6 7 8 9 10 11 12 |
# File 'lib/vienna_rna/package/heat.rb', line 6 def post_process @specific_heats = @response.split(/\n/).map { |line| line.split(/\s+/).map(&:to_f) }.inject({}) do |hash, (temp, specific_heat)| hash.tap do hash[temp] = specific_heat end end end |