From 85fcb4ccb184992a2fe9f441fc7ba15dba362283 Mon Sep 17 00:00:00 2001 From: elenya-grant <116225007+elenya-grant@users.noreply.github.com> Date: Tue, 10 Oct 2023 15:39:15 -0600 Subject: [PATCH] fixed bug in URL in wind_resource.py for API calls when using a user-specified hub-height --- hopp/simulation/technologies/resource/wind_resource.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hopp/simulation/technologies/resource/wind_resource.py b/hopp/simulation/technologies/resource/wind_resource.py index a183102d4..27b75bb7f 100644 --- a/hopp/simulation/technologies/resource/wind_resource.py +++ b/hopp/simulation/technologies/resource/wind_resource.py @@ -83,8 +83,8 @@ def calculate_heights_to_download(self): file_resource_heights = dict() for h in heights: - file_resource_heights[h] = file_resource_base + '_' + str(h) + 'm.srw' - file_resource_full += "_" + str(h) + 'm' + file_resource_heights[int(h)] = file_resource_base + '_' + str(int(h)) + 'm.srw' + file_resource_full += "_" + str(int(h)) + 'm' file_resource_full += ".srw" self.file_resource_heights = file_resource_heights