Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug Fix: wind resource API download for user-specified hub-height #238

Merged
merged 1 commit into from
Oct 10, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions hopp/simulation/technologies/resource/wind_resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down