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.7.0 lib/openstudio-standards/utilities/spacetype_map_converter.rb
openstudio-standards-0.7.0.rc1 lib/openstudio-standards/utilities/spacetype_map_converter.rb
openstudio-standards-0.6.3 lib/openstudio-standards/utilities/spacetype_map_converter.rb
openstudio-standards-0.6.0.rc2 lib/openstudio-standards/utilities/spacetype_map_converter.rb
openstudio-standards-0.6.0.rc1 lib/openstudio-standards/utilities/spacetype_map_converter.rb
openstudio-standards-0.5.0 lib/openstudio-standards/utilities/spacetype_map_converter.rb
openstudio-standards-0.5.0.rc1 lib/openstudio-standards/utilities/spacetype_map_converter.rb
openstudio-standards-0.4.0 lib/openstudio-standards/utilities/spacetype_map_converter.rb
openstudio-standards-0.3.1.rc2 lib/openstudio-standards/utilities/spacetype_map_converter.rb
openstudio-standards-0.3.1.rc1 lib/openstudio-standards/utilities/spacetype_map_converter.rb
openstudio-standards-0.3.0 lib/openstudio-standards/utilities/spacetype_map_converter.rb
openstudio-standards-0.2.17.rc2 lib/openstudio-standards/utilities/spacetype_map_converter.rb
openstudio-standards-0.2.17.rc1 lib/openstudio-standards/utilities/spacetype_map_converter.rb
openstudio-standards-0.2.16 lib/openstudio-standards/utilities/spacetype_map_converter.rb
openstudio-standards-0.2.16.rc2 lib/openstudio-standards/utilities/spacetype_map_converter.rb
openstudio-standards-0.2.16.rc1 lib/openstudio-standards/utilities/spacetype_map_converter.rb
openstudio-standards-0.2.15 lib/openstudio-standards/utilities/spacetype_map_converter.rb
openstudio-standards-0.2.15.pre.rc2 lib/openstudio-standards/utilities/spacetype_map_converter.rb
openstudio-standards-0.2.15.pre.rc1 lib/openstudio-standards/utilities/spacetype_map_converter.rb
openstudio-standards-0.2.14 lib/openstudio-standards/utilities/speacetype_map_converter.rb