lib/openstudio/analysis/translator/datapoints.rb in openstudio-analysis-1.0.0.rc6 vs lib/openstudio/analysis/translator/datapoints.rb in openstudio-analysis-1.0.0.rc7

- old
+ new

@@ -233,11 +233,11 @@ if config_hash[:analysis_name] @name = config_hash[:analysis_name] else @name = SecureRandom.uuid end - @analysis_name = @name.snake_case + @analysis_name = @name.to_underscore fail 'Require setting not found: measure_path' unless config_hash[:measure_paths] config_hash[:measure_paths] = [config_hash[:measure_paths]] unless config_hash[:measure_paths].respond_to?(:each) config_hash[:measure_paths].each do |path| if (Pathname.new path).absolute? @@ -264,10 +264,10 @@ model_name = SecureRandom.uuid if model_name == '' type = File.basename(path).split('.')[1].upcase unless (Pathname.new path).absolute? path = File.expand_path(File.join(@root_path, path)) end - @models << { name: model_name.snake_case, display_name: model_name, type: type, path: path } + @models << { name: model_name.to_underscore, display_name: model_name, type: type, path: path } end # Assign optional attributes if config_hash[:output] path = File.expand_path(File.join(@root_path, config_hash[:output].to_s))