Trying to adjust the coefficients for the infiltration. Since there is no native way to do this in Honeybee, I am trying to apply the “ReduceSpaceInfiltrationByPercentage” measure from BCL since it has the wind speed coefficients I need.
However, when I try to reference the measure, it does not load all the arguments and shows an error (1. Solution exception:unsupported format character ‘)’ (0x29) at index 38):
It looks like the reason why the measure fails to load is that, somewhere in the measure, the programmer put a parentheses into the name of the input variable (very bad coding practice if you ask me) and Grasshopper seems to be complaining that it cannot support parentheses in component inputs. I would say you have two options to get where you need to:
Edit the measure .rb file in a text editor and remove the parentheses.
OR
Add a few lines of code to the OpenStudio Component right after these lines in the component in order to set the coefficients:
So I was wrong about the special character that was causing difficulty. Apparently, it was a ‘%’ and not a ‘(’. I just pushed a fix to the components for this case:
And the whole reason why we were able to correctly identify the faulty character is because Larry7707 correctly identified the faulty character in this github issue . Larry, if you are on this forum and read this message, thank you. And thank you also, @Elliot_Glassman for being the first to find the issue.
It is a check inside the auto-generated component. Should be something on our side. The fact that the input has a white space in it can be the source of the issue.