lib/openstudio/helpers/utils.rb in openstudio-analysis-1.0.5 vs lib/openstudio/helpers/utils.rb in openstudio-analysis-1.0.6

- old
+ new

@@ -50,17 +50,16 @@ measure_hash[:modeler_description] = xml_root.elements['//measure/modeler_description'].text measure_hash[:uid] = xml_root.elements['//measure/uid'].text measure_hash[:version_id] = xml_root.elements['//measure/version_id'].text measure_hash[:arguments] = [] - REXML::XPath.each(xml_root, '//measure/arguments/argument' ) do |arg| - + REXML::XPath.each(xml_root, '//measure/arguments/argument') do |arg| measure_hash[:arguments] << { - name: arg.elements['name'].text, - display_name: arg.elements['display_name'].text, - variable_type: arg.elements['type'].text.downcase, - default_value: arg.elements['default_value'].text, - units: arg.elements['units'] ? arg.elements['units'].text : '' + name: arg.elements['name'].text, + display_name: arg.elements['display_name'].text, + variable_type: arg.elements['type'].text.downcase, + default_value: arg.elements['default_value'].text, + units: arg.elements['units'] ? arg.elements['units'].text : '' } end measure_hash end