Question-and-Answer Resource for the Building Energy Modeling Community
Get started with the Help page
Ask Your Question

Revision history [back]

You need to iterate over your cons array instead of **new_construction**

Also, it is best practice to use snake_case for variable names and avoid special characters. **new_construction** should just be new_construction.

The new code should look like:

cons = ['concrete0.2', 'concrete0.3', 'concrete0.4']
cons.each do |con|
  run_name = "new_construction_#{con.to_s.delete('.')}"
  new_construction = make_cons_change(con)
  makeOSW(run_name, example_osm_filepath, example_epw_filepath, [new_construction, add_hourly_meters], [], [os_results])
end