-
Notifications
You must be signed in to change notification settings - Fork 51
Description
To whom it may concern,
I noticed that for example 01_aeroelasticse/run_general.py, it does not appear to allow setting OpenFAST parameters that are lists. E.g., if one adds the following line as part of the case inputs, one gets an error related to CaseGen_General.py (error at bottom):
`case_inputs[("Fst","LinTimes")] = {"vals":[[30,60]], "group":0}`
This is also a problem if passing a scalar--the function does not seem to "play well" with openfast_io's FAST_writer.py for OpenFAST parameters that can accept lists. If one wants to pass a scalar value for an OpenFAST parameter that can accept a list value, a quick work around is to modify the relevant line in openfast_io so that it is similar to lines for other parameters for scalars.
I do not currently have a more general/better fix (e.g., would involve generalizing CaseGen_General.py), but may look at it more.
Thanks,
-Brian
Traceback (most recent call last):
File "[UserDir]\Code\WEIS\weis\aeroelasticse\CaseGen_General.py", line 138, in CaseGen_General
matrix_out = np.asarray(matrix_out, dtype=str)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 2 dimensions. The detected shape was (6, 17) + inhomogeneous part.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "[UserDir]\Code\WEIS\examples\01_aeroelasticse\run_general.py", line 81, in
case_list, case_name_list = CaseGen_General(case_inputs, dir_matrix=fastBatch.FAST_runDirectory, namebase="iea15mw")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "[UserDir]\Code\WEIS\weis\aeroelasticse\CaseGen_General.py", line 140, in CaseGen_General
matrix_out = np.asarray(matrix_out)
^^^^^^^^^^^^^^^^^^^^^^
ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 2 dimensions. The detected shape was (6, 17) + inhomogeneous part.