Skip to content

Commit

Permalink
Fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
Juliette-Gerbaux committed Aug 23, 2024
1 parent b21f1f0 commit d74fff3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion tests/functional/test_hydro_complete_year.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#
# This file is part of the Antares project.

from pathlib import Path
from typing import List, Tuple

import numpy as np
Expand All @@ -32,7 +33,6 @@
TimeSeriesData,
create_component,
)
from pathlib import Path
from tests.functional.libs.lib_hydro_heuristic import (
HYDRO_MODEL,
HYDRO_MODEL_WITH_TARGET,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ def get_database(
initial_level = 0.5 * capacity

data = HydroHeuristicData(
DataAggregatorParameters(list(range(8760)), list(range(8760))),
DataAggregatorParameters([1] * 8760, list(range(8760))),
ReservoirParameters(capacity, initial_level, data_path, 0),
)
if inflow_data is None:
Expand Down
5 changes: 2 additions & 3 deletions tests/functional/test_hydro_with_rulecurves.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,12 +169,11 @@ def test_hydro_heuristic_daily_part(


def test_complete_year_as_weekly_blocks_with_hydro_heuristic(
expected_weekly_target: List[float],
data_path:str
expected_weekly_target: List[float], data_path: str
) -> None:
"""Solve weekly problems with heuristic weekly targets for the stock."""
database, network = create_database_and_network(
data_path,HYDRO_MODEL_WITH_TARGET, return_to_initial_level=False
data_path, HYDRO_MODEL_WITH_TARGET, return_to_initial_level=False
)

capacity = 1e07
Expand Down

0 comments on commit d74fff3

Please sign in to comment.