Sha256: 420f3baf8fa00218568fb67d77605b93ffcce0b627ab3d1227362adad04ddbf1

Contents?: true

Size: 778 Bytes

Versions: 22

Compression:

Stored size: 778 Bytes

Contents

require 'json'
map = []
File.open('../../../lib/openstudio-standards/standards/necb/NECB2015/data/space_type_upgrade_map.csv').each do |line|
  necb2011_building_type, necb2011_space_type, necb2015_building_type, necb2015_space_type = line.split(',')
  next if necb2011_building_type.nil? || (necb2011_building_type.strip == '')

  map << { 'NECB2011_building_type' => necb2011_building_type.strip,
           'NECB2011_space_type' => necb2011_space_type.strip,
           'NECB2015_building_type' => necb2015_building_type.strip,
           'NECB2015_space_type' => necb2015_space_type.strip,
           'NECB2017_building_type' => necb2015_building_type.strip,
           'NECB2017_space_type' => necb2015_space_type.strip }
end

puts JSON.pretty_generate(map)

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
openstudio-standards-0.2.13 lib/openstudio-standards/utilities/speacetype_map_converter.rb
openstudio-standards-0.2.13.rc3 lib/openstudio-standards/utilities/speacetype_map_converter.rb