Sunlight Hours Analysis - Solution exception:max() arg is an empty sequence

honeybee
#1

Greetings,

Trying to figure out how to use the Sunlight Hours Analysis component in Ladybug. This text shows up:

  1. Solution exception:max() arg is an empty sequence.

From panel:

        {0;0}
  1. Current document units is in Meters
  2. Conversion to Meters will be applied = 1.000
  3. Sunlight hours calculation time = 0.000 Seconds…
  4. 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

#2

Hi tobias,
Can you please share your grasshopper definition?

#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)

#4

Thanks for the file. I tried the file in rhino5 and 6 both. The error does not appear at my end.

#5

Are using a different weather file? If yes. Can you please share?

#6

Thank you for testing the file! :grinning:

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?

#7

Please check absolute tolerance in Rhino in Tools>options>units. Mine is 0.01

#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.