An error of HB Model to OSM

Hi,
I have a question about HB Model to OSM.
I got this error, do you know how to solve it?

  1. Solution exception:Input climate_zone must be a text string. Got <type ‘float’>: 8.0.

I have been doing a lot of research but can’t figure it out.
What could be the cause?
https://youke1.picui.cn/s1/2025/11/17/691abbed1ec94.png

What component are you using to set the climate zone? Make sure you connect a string using a panel and not a number (like a slider).

1 Like

I see where the bug is. We try to pull the climate zone from the .stat file when it is not supplied by the user in this part of the Model to OSM component:

This stat file climate zone comes from a regex in the STAT class here:

And I didn’t realize that the _regex_check function that we have tries to cast the match to a float, only returning a string if the casting fails. So we have been saved from this in the past because a lot of climate zones have a letter at the end of them, which prevents them from being cast to float. But this is not true of climate zone 8, which never has letters associated with it. I just pushed a change here, which should ensure that the ashrae climate zone is always a text string:

The fix should be available with the LB Versioner component in an hour or so. Thank you for reporting the bug, @Alice2 .

3 Likes

Thank you so much! :smiling_face_with_three_hearts: