lib/from_openstudio/construction/window.rb in honeybee-openstudio-2.22.3 vs lib/from_openstudio/construction/window.rb in honeybee-openstudio-2.22.4
- old
+ new
@@ -38,15 +38,15 @@
def self.from_construction(construction)
# create an empty hash
hash = {}
hash[:type] = 'WindowConstructionAbridged'
# set hash values from OpenStudio Object
- hash[:identifier] = construction.nameString
+ hash[:identifier] = clean_name(construction.nameString)
hash[:materials] = []
# get construction layers
layers = construction.layers
layers.each do |layer|
- name = layer.nameString
+ name = clean_name(layer.nameString)
hash[:materials] << name
end
hash
end