From ffd0367d500ae06bbfbb658669af8f82688c934c Mon Sep 17 00:00:00 2001 From: guille Date: Mon, 29 Apr 2024 06:02:43 +0200 Subject: [PATCH] Bugfix in sra export --- hub/exports/formats/simplified_radiosity_algorithm.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hub/exports/formats/simplified_radiosity_algorithm.py b/hub/exports/formats/simplified_radiosity_algorithm.py index 1b5dfba7..d008a958 100644 --- a/hub/exports/formats/simplified_radiosity_algorithm.py +++ b/hub/exports/formats/simplified_radiosity_algorithm.py @@ -66,9 +66,9 @@ class SimplifiedRadiosityAlgorithm: else: i = (total_days + day - 1) * 24 + hour - 1 representative_building = self._city.buildings[0] - _global = representative_building.global_horizontal[cte.HOUR][i] * cte.WATTS_HOUR_TO_JULES + _diffuse = representative_building.diffuse[cte.HOUR][i] * cte.WATTS_HOUR_TO_JULES _beam = representative_building.beam[cte.HOUR][i] * cte.WATTS_HOUR_TO_JULES - content += f'{day} {month} {hour} {_global} {_beam}\n' + content += f'{day} {month} {hour} {_diffuse} {_beam}\n' with open(file, 'w', encoding='utf-8') as file: file.write(content)