-
Notifications
You must be signed in to change notification settings - Fork 7
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
feat(load): add arrow endpoints #2200
Open
TheoPascoli
wants to merge
43
commits into
dev
Choose a base branch
from
feat/add-load-endpoints-with-arrow
base: dev
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+190
−1
Open
Changes from 1 commit
Commits
Show all changes
43 commits
Select commit
Hold shift + click to select a range
ad63883
feat: first commit
TheoPascoli 62f1b1d
feat: first commit
TheoPascoli cc01641
Merge branch 'dev' into feat/add-load-endpoints-with-arrow
TheoPascoli d73c8de
Merge branch 'dev' into feat/add-load-endpoints-with-arrow
TheoPascoli 998c04e
feat(bc): use `update_config` instead of `update_bc` for multiple upd…
MartinBelthle f4206fe
build(python): bump python version to use v3.11 (#2164)
MartinBelthle f8b0f8a
feat(ts-gen): display progress bar via websockets (#2194)
MartinBelthle ebd2df4
feat: first commit
TheoPascoli 9a3591a
feat: first commit
TheoPascoli fddf3b8
feat: first commit
TheoPascoli 582aed0
feat: first commit
TheoPascoli 72ec467
Merge branch 'feat/add-load-endpoints-with-arrow' of https://github.c…
TheoPascoli 43a5e40
feat: Refactor load management to use LoadInfoDTO
TheoPascoli 4e74852
feat: refactor load series API response model
TheoPascoli c99cdb1
feat: add support for pyarrow in load management
TheoPascoli 0a4e6f5
feat: refactor load series api response model
TheoPascoli 1b6dc2b
feat: add support for pyarrow in load management
TheoPascoli cae2930
Merge remote-tracking branch 'origin/feat/add-load-endpoints-with-arr…
TheoPascoli 1b86d9a
feat: fix whitespace issue in load management module
TheoPascoli f45f065
feat: refactor load management response
TheoPascoli 6506459
Merge remote-tracking branch 'origin/dev' into feat/add-load-endpoint…
TheoPascoli 213cbaf
feat: refactor `get_load_matrix` method to improve readability
TheoPascoli 7b5e0a0
feat: add integration test for load series endpoint
TheoPascoli 37b7108
feat: add endpoint to update load series data
TheoPascoli 1ef1ff1
feat: refactor LoadDTO and add LoadProperties model
TheoPascoli 4a234e6
feat: refactor link path handling in link management.
TheoPascoli c0a82de
Merge remote-tracking branch 'origin/dev' into feat/add-load-endpoint…
TheoPascoli e91dc71
Merge remote-tracking branch 'origin/dev' into feat/add-load-endpoint…
TheoPascoli 997803a
feat: refactor load series endpoint paths and add data conversion
TheoPascoli 255b104
Merge branch 'dev' into feat/add-load-endpoints-with-arrow
TheoPascoli aff9c83
feat: remove JSON format support for load matrix endpoints
TheoPascoli d63cb8e
feat: add docstrings and fix IO imports in load management
TheoPascoli a522a22
feat: add docstrings and fix IO imports in load management
TheoPascoli 8fe2863
Merge remote-tracking branch 'origin/dev' into feat/add-load-endpoint…
TheoPascoli 9d55b36
Merge remote-tracking branch 'origin/feat/add-load-endpoints-with-arr…
TheoPascoli 5df3960
feat: add docstrings and fix IO imports in load management
TheoPascoli 09bc218
Merge branch 'dev' into feat/add-load-endpoints-with-arrow
TheoPascoli 7e3b03a
feat: remove web considerations that were inside the business layer
TheoPascoli 6277ae0
Merge remote-tracking branch 'origin/dev' into feat/add-load-endpoint…
TheoPascoli 5fd6880
feat: set up GET endpoint that returns a arrow matrix with MatrixInde…
TheoPascoli feb957f
feat: remove useless load_model.py
TheoPascoli cb3d3f4
feat: remove useless load_model.py
TheoPascoli fe6acbd
feat: change way of dealing with the writing of the feather file
TheoPascoli File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
feat: first commit
commit 9a3591ab805721bff95cac76d072cc0448ece002
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# Copyright (c) 2024, RTE (https://www.rte-france.com) | ||
# | ||
# See AUTHORS.txt | ||
# | ||
# This Source Code Form is subject to the terms of the Mozilla Public | ||
# License, v. 2.0. If a copy of the MPL was not distributed with this | ||
# file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
# | ||
# SPDX-License-Identifier: MPL-2.0 | ||
# | ||
# This file is part of the Antares project. | ||
import typing as t | ||
|
||
from antarest.study.model import MatrixFormat, Study | ||
from antarest.study.storage.storage_service import StudyStorageService | ||
|
||
|
||
class LoadOutput: | ||
pass | ||
|
||
|
||
class LoadManager: | ||
def __init__(self, storage_service: StudyStorageService) -> None: | ||
self.storage_service = storage_service | ||
|
||
def get_load_matrix(self, study: Study, area_id: str, matrix_format: t.Optional[MatrixFormat]) -> LoadOutput: | ||
return LoadOutput() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Generally speaking for the other matrices, what is your vision here ? For hydro for instance, we want to add the code inside the HydroManager or do we want to create a specific manager on the side ? I personally prefer the 1st option