- Solution exception:The UWG failed to run:
UWG model simulation failed.
math domain error
Traceback (most recent call last):
File “C:\Program Files\ladybug_tools\python\lib\site-packages\uwg\cli\simulate.py”, line 50, in simulate_json_model
uwg_model.simulate()
File “C:\Program Files\ladybug_tools\python\lib\site-packages\uwg\uwg.py”, line 1352, in simulate
self.RSM)
File “C:\Program Files\ladybug_tools\python\lib\site-packages\uwg\urbflux.py”, line 38, in urbflux
BEM[j].building.BEMCalc(UCM, BEM[j], forc, parameter, simTime)
File “C:\Program Files\ladybug_tools\python\lib\site-packages\uwg\building.py”, line 539, in BEMCalc
psychrometrics(self.indoor_temp, self.indoor_hum, forc.pres)
File “C:\Program Files\ladybug_tools\python\lib\site-packages\uwg\psychrometrics.py”, line 52, in psychrometrics
alpha = log(_pw)
ValueError: math domain error
Hi @dyna ,
It looks like your EPW file has a set of conditions in it that’s causing the humidity to be a technically impossible number (but it’s probably a zero or something where we know there’s an appropriate solution). I just pushed a fix to the UWG assuming that this is the case:
And the fix should be available now with the LB Versioner component. If that does not address it, then please upload your EPW file and I’ll try to recreate the error.