Skip to content

Commit

Permalink
Fix and point example_01 to Tune_Cases/
Browse files Browse the repository at this point in the history
  • Loading branch information
dzalkind authored and nikhar-abbas committed Jun 29, 2021
1 parent f9a2519 commit 3ea48e2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 65 deletions.
62 changes: 0 additions & 62 deletions Examples/NREL5MW_example.yaml

This file was deleted.

7 changes: 4 additions & 3 deletions Examples/example_01.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@

# Load yaml file
this_dir = os.path.dirname(os.path.abspath(__file__))
parameter_filename = os.path.join(this_dir,'NREL5MW_example.yaml')
tune_dir = os.path.join(this_dir,'../Tune_Cases')
parameter_filename = os.path.join(tune_dir,'NREL5MW.yaml')
inps = yaml.safe_load(open(parameter_filename))
path_params = inps['path_params']
turbine_params = inps['turbine_params']
Expand All @@ -29,9 +30,9 @@

turbine.load_from_fast(
path_params['FAST_InputFile'],
os.path.join(this_dir,path_params['FAST_directory']),
os.path.join(tune_dir,path_params['FAST_directory']),
dev_branch=True,
rot_source='txt',txt_filename=os.path.join(this_dir,path_params['rotor_performance_filename'])
rot_source='txt',txt_filename=os.path.join(tune_dir,path_params['rotor_performance_filename'])
)

# Print some basic turbine info
Expand Down

0 comments on commit 3ea48e2

Please sign in to comment.