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

contrib: Add Links conversion to yaml components #61

Merged
merged 2 commits into from
Jan 16, 2025

Conversation

killian-scalian
Copy link
Collaborator

No description provided.

@killian-scalian killian-scalian marked this pull request as ready for review January 15, 2025 16:32
@@ -28,24 +28,16 @@ def _init_area_reading(self, local_study):
areas = converter.study.read_areas()
return areas, converter

def test_convert_study_to_input_study(self, local_study_w_thermal):
converter = AntaresStudyConverter(study_input=local_study_w_thermal)
def test_convert_study_to_input_study(self, local_study_w_areas):
Copy link
Contributor

Choose a reason for hiding this comment

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

Why changing this test ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Because it was a little redondant, and with the thermal local study i was forced to add tests for links, which is very long tests. I preferred to make specific tests for links ( with specific thermal tests too)

) = converter._convert_link_to_component_list()

fr_it_direct_links_timeseries = str(
study_path / "input" / "links" / "fr" / "capacities" / "it_direct.txt"
Copy link
Contributor

Choose a reason for hiding this comment

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

You can introduce a constant for study_path / "input" / "links" / "fr" / "capacities" /

@tbittar tbittar merged commit c518cf3 into main Jan 16, 2025
2 checks passed
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