Skip to content

Commit

Permalink
Make update discons relative to tuning yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
dzalkind committed May 11, 2022
1 parent f4094ea commit f8c1dbe
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Test_Cases/update_discons.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,13 @@
controller = ROSCO_controller.Controller(controller_params)

# Load turbine data from OpenFAST and rotor performance text file
yaml_dir = os.path.dirname(os.path.join(tune_dir,tuning_yaml)) # files relative to tuning yaml
turbine.load_from_fast(
path_params['FAST_InputFile'],
os.path.join(tune_dir,path_params['FAST_directory']),
os.path.join(yaml_dir,path_params['FAST_directory']),
dev_branch=True,
rot_source='txt',
txt_filename=os.path.join(tune_dir,path_params['rotor_performance_filename'])
txt_filename=os.path.join(yaml_dir,path_params['FAST_directory'],path_params['rotor_performance_filename'])
)

# Tune controller
Expand Down

0 comments on commit f8c1dbe

Please sign in to comment.