Skip to content

Commit

Permalink
Fix bugs in DISCON testing
Browse files Browse the repository at this point in the history
  • Loading branch information
nikhar-abbas committed Nov 5, 2020
1 parent 9efb2ab commit a2ed63b
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions ROSCO_testing/ROSCO_testing.py
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ def ROSCO_Controller_Comp(self, controller_paths, testtype='light', more_case_in
self.runDir = run_dir_init
self.windDir = wind_dir_init

def ROSCO_DISCON_Comp(self, DISCON_filenames, testtype='light'):
def ROSCO_DISCON_Comp(self, DISCON_filenames, testtype='light', more_case_inputs={}, U=[]):
'''
Heavy or light testing for n DISCON.IN files, n = len(DISCON_paths)
Expand All @@ -455,14 +455,13 @@ def ROSCO_DISCON_Comp(self, DISCON_filenames, testtype='light'):
self.windDir = os.path.join(run_dir_init, 'wind') # wind in base runDir

# Point to different DISCON.IN files using more_case_inputs
more_case_inputs = {}
more_case_inputs[('ServoDyn', 'DLL_ProcName')] = {'vals': [discon], 'group': 0}
more_case_inputs[('ServoDyn', 'DLL_InFile')] = {'vals': [discon], 'group': 0}
self.windDir = os.path.join(run_dir_init, 'wind') # wind in base runDir

if testtype.lower() == 'light':
self.ROSCO_Test_lite(more_case_inputs=more_case_inputs)
self.ROSCO_Test_lite(more_case_inputs=more_case_inputs, U=U)
elif testtype.lower() == 'heavy':
self.ROSCO_Test_heavy(more_case_inputs=more_case_inputs)
self.ROSCO_Test_heavy(more_case_inputs=more_case_inputs, U=U)
else:
raise ValueError('{} is an invalid testtype for DISCON comparison'.format(testtype))

Expand Down

0 comments on commit a2ed63b

Please sign in to comment.