-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Labels
improvementImprovement on internal implementationImprovement on internal implementation
Description
Describe the problem
Currently we use a hardcoded list to determine which arrays to convert.
Instead it would be nice if we loop over ComponentType from PGM and use these to get the arrays.
Current implementation:
power-grid-model-ds/src/power_grid_model_ds/_core/load_flow.py
Lines 16 to 29 in 54a4061
| PGM_ARRAYS = [ | |
| "node", | |
| "line", | |
| "link", | |
| "transformer", | |
| "three_winding_transformer", | |
| "sym_load", | |
| "sym_gen", | |
| "source", | |
| "transformer_tap_regulator", | |
| "sym_power_sensor", | |
| "sym_voltage_sensor", | |
| "asym_voltage_sensor", | |
| ] |
| for array_name in PGM_ARRAYS: |
| for array_name in PGM_ARRAYS: |
The enum from PGM:
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
improvementImprovement on internal implementationImprovement on internal implementation
Type
Projects
Status
No status