Skip to content

Commit 89fa6ee

Browse files
feat: support additional values
Signed-off-by: jaapschoutenalliander <[email protected]>
1 parent af87381 commit 89fa6ee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/power_grid_model_ds/_core/utils/serialization.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
logger = logging.getLogger(__name__)
1717

1818

19-
def _restore_grid_arrays(grid, input_data: Dict) -> None:
19+
def _restore_grid_values(grid, input_data: Dict) -> None:
2020
"""Restore arrays to the grid."""
2121
for attr_name, attr_values in input_data.items():
2222
if not hasattr(grid, attr_name):
@@ -99,6 +99,6 @@ def load_grid_from_json(path: Path, target_grid_class=None):
9999
else:
100100
target_grid = target_grid_class.empty()
101101

102-
_restore_grid_arrays(target_grid, input_data)
102+
_restore_grid_values(target_grid, input_data)
103103

104104
return target_grid

0 commit comments

Comments
 (0)