First time here? Check out the Help page!
1 | initial version |
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