OpenStudio measure returning 'undefined method' error
I am trying to run the measure of "Roof thermal properties multiplier" that I found in the BCL library, on a DOE prototypical building. It is throwing an error that says "undefined method 'getSolarAbsorptance'. Solar absorptance is one of the arguments in the measure. I am surprised because this is a measure from the BCL, and it should be working fine. Could I get some help understanding the 'undefined method' error.
If one searches/downloads either "RoofThermalPropertiesPercentChange" or "RoofThermalPropertiesMultiplier" measures from BCL, the (deprecated) getSolarAbsorptance method is indeed there - deprecated after SDK v2.9.0. Recent versions of the (Calibration Gem) measures have been corrected - for some reason BCL holds older versions (compare copyright dates and GitHub branches).
BTW, same issue with BCL-downloaded "ExteriorWallThermalPropertiesPercentChange" & "ExteriorWallThermalPropertiesMultiplier" calibration measures - also identified and fixed in recent years (compare "Develop" vs "Develop3" branches here).
Thanks Denis, this has been a great help. I have corrected this in my local copy of the measure and this particular issue is resolved, However, I'm getting another error now. When I define a "multiplier" value for the three variables (thermal resistance, solar absorptance, density), it returns an error saying "undefined method 'value' for 0.56:Float" 0.56 is the new solar absorptance (0.7=existing solar absorptance TIMES 0.8=multiplier used)
Do you have any thoughts as to why I'm seeing this error?
If you're substituting the deprecated getSolarAbsorptance method with solarAbsorptance, you also need to remove the subsequent .value. So getSolarAbsorptance.value should become solarAbsorptance. Same with getDensity. You can get a better idea of what went wrong with an OpenStudio measure by going over the out.osw file.
Thanks Denis! This has been a great help.