SimScaleGmbH / external-building-aerodynamics

MIT License
1 stars 2 forks source link

Solution exception when using radiance example inside grasshopper #39

Open kyenipazar opened 7 months ago

kyenipazar commented 7 months ago

When using simple_radiance_utci code given in this folder: https://github.com/SimScaleGmbH/external-building-aerodynamics/tree/master/examples/Grasshopper%20Example

Following error message is occurred in Matrix block: 1. Solution exception:C:\Users\kaany\AppData\Local\Programs\Python\Python39\lib\site-packages\simscale_eba\HourlyContinuous.py:470: FutureWarning: Calling float on a single element Series is deprecated and will raise a TypeError in the future. Use float(ser.iloc[0]) instead df[direction] = range_probability * float(directional_occurances[direction])

As the error states clearly, a quick fix was to change the line 470 in HourlyContinuos.py to the following:

df[direction] = range_probability * float(directional_occurances[direction].iloc[0])