Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support conversion to numeric type for nested dictionaries #1088

Open
rafmudaf opened this issue Mar 24, 2025 · 0 comments
Open

Support conversion to numeric type for nested dictionaries #1088

rafmudaf opened this issue Mar 24, 2025 · 0 comments

Comments

@rafmudaf
Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant