Skip to content

Commit

Permalink
feat(load): rebase with dev with one breaking change resolved
Browse files Browse the repository at this point in the history
  • Loading branch information
TheoPascoli committed Jan 30, 2025
1 parent 77c99aa commit fc6cd91
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion antarest/study/business/arrow_utils.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2024, RTE (https://www.rte-france.com)
# Copyright (c) 2025, RTE (https://www.rte-france.com)
#
# See AUTHORS.txt
#
Expand Down
5 changes: 2 additions & 3 deletions antarest/study/business/load_management.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2024, RTE (https://www.rte-france.com)
# Copyright (c) 2025, RTE (https://www.rte-france.com)
#
# See AUTHORS.txt
#
Expand Down Expand Up @@ -36,9 +36,8 @@ def get_load_matrix(self, study: Study, area_id: str) -> t.Tuple[pd.DataFrame, t
if not isinstance(node, InputSeriesMatrix):
raise TypeError(f"Expected node of type 'InputSeriesMatrix', but got '{type(node).__name__}'")

matrix_data = InputSeriesMatrix.parse(node, return_dataframe=True)
matrix_df = InputSeriesMatrix.parse_as_dataframe(node)

matrix_df = t.cast(pd.DataFrame, matrix_data)
matrix_df.columns = matrix_df.columns.map(str)

matrix_df.columns = pd.Index(matrix_columns)
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/study_data_blueprint/test_load.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2024, RTE (https://www.rte-france.com)
# Copyright (c) 2025, RTE (https://www.rte-france.com)
#
# See AUTHORS.txt
#
Expand Down

0 comments on commit fc6cd91

Please sign in to comment.