You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Support conversion to floris_float_type for values in nested dicts
FLORIS has the type_dec.floris_numeric_dict_converter function to cast data in an input dictionary to the type_dec.floris_float_type data type. However, this function is not recursive, so it only converts the first level of data in the dictionary hierarchy. Because of this limitation, there's a workaround in the Turbine-class init when loading the multidimensional Cp and Ct tables, and another one is incoming in #832.
Proposed solution
Support a recursive numeric type cast in dictionaries.
Alternatives considered
More workarounds, but things are getting complicated.
The text was updated successfully, but these errors were encountered:
Support conversion to
floris_float_type
for values in nested dictsFLORIS has the type_dec.floris_numeric_dict_converter function to cast data in an input dictionary to the type_dec.floris_float_type data type. However, this function is not recursive, so it only converts the first level of data in the dictionary hierarchy. Because of this limitation, there's a workaround in the Turbine-class init when loading the multidimensional Cp and Ct tables, and another one is incoming in #832.
Proposed solution
Support a recursive numeric type cast in dictionaries.
Alternatives considered
More workarounds, but things are getting complicated.
The text was updated successfully, but these errors were encountered: