From d6580c69d4b9b5574c6676689cb0589f0a8f3b7b Mon Sep 17 00:00:00 2001 From: Mikkel Pedersen Date: Tue, 6 Dec 2022 11:38:37 +0100 Subject: [PATCH] fix(folder): Use full_id instead of identifier in combined receiver --- honeybee_radiance_folder/folder.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/honeybee_radiance_folder/folder.py b/honeybee_radiance_folder/folder.py index f4e85e9..cf9c31a 100644 --- a/honeybee_radiance_folder/folder.py +++ b/honeybee_radiance_folder/folder.py @@ -634,7 +634,7 @@ def combined_receivers(self, folder='receiver', auto_mtx_path=False): continue # write combined receiver for grid receiver_file = combined_receiver( - grid['identifier'], + grid['full_id'], apt_group_folder, aperture_groups, rec_folder, add_output_header=auto_mtx_path @@ -642,6 +642,7 @@ def combined_receivers(self, folder='receiver', auto_mtx_path=False): receivers_info.append( { 'identifier': grid['identifier'], + 'full_id': grid['full_id'], 'count': grid['count'], 'path': receiver_file, 'aperture_groups': aperture_groups @@ -921,7 +922,7 @@ def grid_info(self, is_model=False): def grid_data_all(self, info_from_model=False): """ This is an internal function that for a specified info_json, returns the - consolidated grid data ,that includes grid names,counts and identifiers, as a + consolidated grid data, that includes grid names,counts and identifiers, as a single dictionary. Args: @@ -938,8 +939,6 @@ def grid_data_all(self, info_from_model=False): if not grid_info: return None else: - for grid in grid_info: - grid.pop('full_id') return grid_info def write(self, folder_type=0, cfg=None, overwrite=False):