Skip to content

Add st storage to input converter w tests #83

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

Merged
merged 6 commits into from
Apr 10, 2025

Conversation

killian-scalian
Copy link
Collaborator

  • Add st storage to yaml converter
  • Add tests

@killian-scalian killian-scalian marked this pull request as ready for review April 10, 2025 08:46
@killian-scalian killian-scalian requested a review from tbittar April 10, 2025 08:46
scenario_dependent=True,
value=str(lower_rule_curve_path),
),
InputComponentParameter(
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pour la lisibilité, c'est mieux de mettre lower/upper rule curve à la suite

@@ -139,7 +140,22 @@ def actual_renewable_list_ini(local_study_with_renewable) -> IniFile:


@pytest.fixture
def local_study_with_st_storage(local_study_with_renewable) -> Study:
def default_thermal_cluster_properties() -> STStorageProperties:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Renommer la fonction default_storage_properties

storage_connections,
) = converter._convert_st_storage_to_component_list(areas, lib_id)

inflows_path = (
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tu pourrais introduire une variable pour stocker study_path / "input" / "st-storage" / "series" / "fr" / "battery" et éviter de le répéter

@tbittar tbittar merged commit 8dea8b1 into main Apr 10, 2025
2 checks passed
@tbittar tbittar deleted the contrib_st_storage_yaml_converter branch April 10, 2025 12:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants