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

Feat/add craft base model #65

Open
wants to merge 22 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
11e4e98
feat(api): adding renewable and thermal matrix upload method (unit te…
mehdiwahada Jan 23, 2025
23e7d51
feat(api): adding renewable and thermal matrix upload method (unit te…
mehdiwahada Jan 23, 2025
a616eaa
feat(api): WIP integration tests
mehdiwahada Jan 23, 2025
800a13a
feat(api): WIP integration tests
mehdiwahada Jan 23, 2025
81cce67
feat(api): WIP integration tests
mehdiwahada Jan 23, 2025
decd58a
feat(api): adding renewable and thermal matrix upload method (unit te…
mehdiwahada Jan 23, 2025
b23ba51
feat(api): adding renewable and thermal matrix upload method (unit te…
mehdiwahada Jan 23, 2025
9959b1c
feat(api): WIP integration tests
mehdiwahada Jan 23, 2025
0e70d20
feat(api): WIP integration tests
mehdiwahada Jan 23, 2025
d83d922
feat(api): WIP integration tests
mehdiwahada Jan 23, 2025
2b7855c
feat(api): included integration tests and correcting minor errors
mehdiwahada Jan 23, 2025
5a61c3b
Merge remote-tracking branch 'origin/feat/upload_renewable_thermal_ma…
mehdiwahada Jan 23, 2025
fe5456d
feat(api): included integration tests and correcting minor errors
mehdiwahada Jan 24, 2025
13ef31d
feat(api): included integration tests and correcting minor errors
mehdiwahada Jan 24, 2025
f807670
feat(api): included integration tests and correcting minor errors
mehdiwahada Jan 27, 2025
4e06e3b
feat(api): creating CraftBaseModel class
mehdiwahada Jan 27, 2025
f54baa6
Merge branch 'main' into feat/add_craft_base_model
mehdiwahada Jan 27, 2025
e645886
fix(api): trying to fix warning problems
mehdiwahada Jan 27, 2025
824c171
Merge remote-tracking branch 'origin/feat/add_craft_base_model' into …
mehdiwahada Jan 27, 2025
11ee5f2
changed pydantic version
mehdiwahada Jan 28, 2025
8e65c3f
changed pydantic version
mehdiwahada Jan 28, 2025
27a631f
changed pydantic version
mehdiwahada Jan 28, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ dependencies = [
"configparser~=5.0.2",
"numpy~=1.26.4",
"pandas~=2.2.2",
"pydantic~=2.7.1",
"pydantic~=2.8.2",
"requests~=2.32.0"
]
classifiers = [
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ configparser~=5.0.2
numpy~=1.26.4
pandas~=2.2.2
pandas-stubs~=2.2.2
pydantic~=2.7.1
pydantic~=2.8.2
pytest~=7.2.1
python-dateutil~=2.9.0
requests~=2.32.0
Expand Down
19 changes: 14 additions & 5 deletions src/antares/craft/model/craft_base_model.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,17 @@
from pydantic import BaseModel
# 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.

from pydantic import BaseModel, ConfigDict


class CraftBaseModel(BaseModel):
pass
# def __init__(self, /, **data: Any):
# super().__init__(**data)
# self.model_dump(warnings=False)
model_config = ConfigDict(arbitrary_types_allowed=True)