Skip to content

Commit

Permalink
failure parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
killian-scalian committed Jan 15, 2025
1 parent bab9c89 commit f92bd69
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/andromede/input_converter/src/converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@ def _convert_thermal_to_component_list(
component2=area.id,
port_2="balance_port",
)
)
return components, connections

def _convert_wind_to_component_list(
Expand Down Expand Up @@ -312,15 +313,21 @@ def convert_study_to_input_study(self) -> InputStudy:
areas = self.study.read_areas()
area_components = self._convert_area_to_component_list(areas)

list_components: list[InputComponent] = []
list_connections: list[InputPortConnections] = []

components, connections = self._convert_link_to_component_list()
list_components.extend(components)
list_connections.extend(connections)
conversion_methods = [
self._convert_renewable_to_component_list,
self._convert_thermal_to_component_list,
self._convert_load_to_component_list,
self._convert_wind_to_component_list,
self._convert_solar_to_component_list,
]
list_components: list[InputComponent] = []
list_connections: list[InputPortConnections] = []



for method in conversion_methods:
components, connections = method(areas)
Expand Down

0 comments on commit f92bd69

Please sign in to comment.