Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
killian-scalian committed Jan 15, 2025
1 parent dee638a commit 38dcba3
Showing 1 changed file with 22 additions and 23 deletions.
45 changes: 22 additions & 23 deletions src/andromede/input_converter/src/converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,17 +247,17 @@ def _convert_solar_to_component_list(
if series_path.exists():
if self._check_dataframe_validity(area.get_solar_matrix()):
components.append(
InputComponent(
id=area.id,
model="solar",
parameters=[
InputComponentParameter(
name="solar",
type="timeseries",
timeseries=str(series_path),
)
],
)
InputComponent(
id=area.id,
model="solar",
parameters=[
InputComponentParameter(
name="solar",
type="timeseries",
timeseries=str(series_path),
)
],
)
)
connections.append(
InputPortConnections(
Expand All @@ -282,18 +282,17 @@ def _convert_load_to_component_list(
if series_path.exists():
if self._check_dataframe_validity(area.get_load_matrix()):
components.append(
InputComponent(
id=area.id,
model="load",
parameters=[
InputComponentParameter(
name="load",
type="timeseries",
timeseries=str(series_path),
)
],
)

InputComponent(
id=area.id,
model="load",
parameters=[
InputComponentParameter(
name="load",
type="timeseries",
timeseries=str(series_path),
)
],
)
)
connections.append(
InputPortConnections(
Expand Down

0 comments on commit 38dcba3

Please sign in to comment.