Skip to content

contrib: Add Links conversion to yaml components#61

Merged
tbittar merged 2 commits intomainfrom
contrib_input_link_component
Jan 16, 2025
Merged

contrib: Add Links conversion to yaml components#61
tbittar merged 2 commits intomainfrom
contrib_input_link_component

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

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
Collaborator

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
Collaborator

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
@killian-scalian killian-scalian deleted the contrib_input_link_component branch April 18, 2025 12:58
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