TK
June 24, 2019, 3:46pm
1
Greetings,
Trying to figure out how to use the Sunlight Hours Analysis component in Ladybug. This text shows up:
Solution exception:max() arg is an empty sequence.
From panel:
{0;0}
Current document units is in Meters
Conversion to Meters will be applied = 1.000
Sunlight hours calculation time = 0.000 Seconds…
Runtime error (ValueErrorException): max() arg is an empty sequence
Traceback:
line 2700, in gradientColor, “”
line 229, in resultVisualization, “”
line 436, in main, “”
line 457, in script
Used the script from here: http://hydrashare.github.io/hydra/viewer?owner=mostaphaRoudsari&fork=hydra_1&id=Find_when_sun_is_visible_to_a_point&slide=0&scale=1&offset=0,0
Anyone know what to do? Thanks!
Best regards
Tobias
devang
June 26, 2019, 6:59am
2
Hi tobias,
Can you please share your grasshopper definition?
TK
June 26, 2019, 8:05am
3
Thanks for your reply @devang .
When i open the “Find when sun is visible to a point” file from hydrashare it looks fine, but when i rerun the script i get the error message.
Find_when_sun_is_visible_to_a_point.gh (526.1 KB)
devang
June 26, 2019, 8:38am
4
Thanks for the file. I tried the file in rhino5 and 6 both. The error does not appear at my end.
devang
June 26, 2019, 8:44am
5
Are using a different weather file? If yes. Can you please share?
TK
June 26, 2019, 9:10am
6
Thank you for testing the file!
Using this weather file:
“https://www.energyplus.net/weather-download/north_and_central_america_wmo_region_4/USA/PA/USA_PA_Philadelphia.Intl.AP.724080_TMY3/all ”
Tried a different weather file and it still does not work. When I opened the file it looked ok, but when i rerunned the script i got the error message.
Used the same script on a different computer and it worked. I might have some issues due to some other plugins?
devang
June 26, 2019, 10:00am
7
Please check absolute tolerance in Rhino in Tools>options>units. Mine is 0.01
TK
June 26, 2019, 10:57am
8
Also using tolerance 0.01
Been checking the code for the current node. I will try to check a bit further with the two computers. Thanks for taking the time @devang , much appreciated.