Skip to content

Commit

Permalink
Apply DISCON inputs from modeling input
Browse files Browse the repository at this point in the history
  • Loading branch information
dzalkind committed Nov 13, 2024
1 parent 9df78c2 commit 62e6a77
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions weis/glue_code/glue_code.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,13 @@ def setup(self):

# Apply changes in modeling options, should have already been validated
modopts_no_defaults = load_yaml(modeling_options['fname_input_modeling'])
skip_options = ['tuning_yaml'] # Options to skip loading, tuning_yaml path has been updated, don't overwrite
skip_options = ['tuning_yaml','DISCON'] # Options to skip loading, tuning_yaml path has been updated, don't overwrite
for option, value in modopts_no_defaults['ROSCO'].items():
if option not in skip_options:
modeling_options['ROSCO'][option] = value

# Handle DISCON inputs separately
for option, value in modopts_no_defaults['ROSCO']['DISCON'].items():
modeling_options['ROSCO']['DISCON'][option] = value

tune_rosco_ivc = om.IndepVarComp()
if modeling_options['ROSCO']['linmodel_tuning']['type'] == 'robust':
Expand Down

0 comments on commit 62e6a77

Please sign in to comment.