November 29, 2018, 4:43pm
I am running a daylight study for the UDI, and have used this script many times, but I have recently been getting an “AssertionError” on the Annual Daylight Metrics component after I have run the analysis. I am not sure what is causing it and have triple checked all of my geometry. I screenshot of the error message is below. Any ideas how to fix this? Thanks.
November 30, 2018, 12:45am
Here is the line where the error is coming from:
Daylight autonomy, Continious daylight autonomy, Useful daylight illuminance,
Less than UDI, More than UDI
results_loaded = True
if not self.has_values and not self.result_files:
raise ValueError('No values are assigned to this analysis grid.')
elif not self.has_values:
# results are not loaded but are available
assert len(self.result_files) == 1, \
'Annual recipe can currently only handle '
'a single merged result file.'
results_loaded = False
print('Loading the results from result files.')
res = (, , , , )
da_threshhold = da_threshhold or 300.0
It seems that you have more than one analysis result file for this study (it looks like at least two .ill files are being added according to the simulation report).
If you can upload a definition that recreates the issue, we can get a better sense of what is going wrong.
November 30, 2018, 1:52am
@chris for the quick reply. I noticed that it seemed to be trying to pull two files in, but I am unsure why.
It has happened on a few files, the one I am uploading is a test file that also has the error coming up. Thanks!
UDI_testUpload.gh (528.9 KB)
@msilver for updating the file. I will check your file tomorrow.
This should fix it:
Update Honeybee[+] installation and try again.
November 30, 2018, 10:49pm
@mostapha, it works now!
I am running into an assertion error as well.
I am trying to add a frit pattern through the perforate.cal function. I am able to successfully do it in legacy honeybee, but when I plug the perforate.cal material into the HoneybeePlus_Honeybee Surface Component I get the assertion error:
I did do the recommendation of updating my honeybee+ before posting.
August 13, 2020, 11:30am
@charkitect, I just got the same issue. Have you fixed it?
Yes. Remove the old version and install the latest version of Honeybee[+].