Skip to content

Commit

Permalink
Merge pull request #3 from EUFLOW/let-pywake-accept-dictionaries
Browse files Browse the repository at this point in the history
allow run_pywake input to be a dict of a parsed wind energy system
  • Loading branch information
kilojoules authored Feb 7, 2025
2 parents cc5ffa7 + 95166e7 commit b0bab38
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion wifa/pywake_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,11 @@ def run_pywake(yamlFile, output_dir="output"):
)
from py_wake.wind_turbines import WindTurbines

system_dat = load_yaml(yamlFile)
# allow yamlFile to be an already parsed input dict
if not isinstance(yamlFile, dict):
system_dat = load_yaml(yamlFile)
else:
system_dat = yamlFile

# check for multiple turbines?

Expand Down

0 comments on commit b0bab38

Please sign in to comment.