Skip to content

Commit

Permalink
Fix test parameter and numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
adrivinca authored and khaeru committed Nov 4, 2024
1 parent 46d928e commit abba7be
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ def par(
"node_loc": ["R12_AFR", "R12_AFR", "R12_AFR"],
"technology": ["coal_ppl", "coal_ppl", "coal_ppl"],
year_type: [2030, 2040, 2050],
"value": [15, 30, 32],
"value": [15, 150, 2000],
}
)

Expand All @@ -234,7 +234,7 @@ def par(
)
def test_relax_growth_constraint(constraint_type, year_type):
# Sample data for g_lo
g_lo = pd.DataFrame(
g_up = pd.DataFrame(
{
"node_loc": ["R12_AFR", "R12_AFR", "R12_AFR", "R12_AFR"],
"technology": [
Expand Down Expand Up @@ -278,7 +278,7 @@ def test_relax_growth_constraint(constraint_type, year_type):
scen = MockScenario()

# Call the function with mock data
result = relax_growth_constraint(ref_hist, scen, cooling_df, g_lo, constraint_type)
result = relax_growth_constraint(ref_hist, scen, cooling_df, g_up, constraint_type)
# reset_index to make the comparison easier
result = result.reset_index(drop=True)

Expand Down

0 comments on commit abba7be

Please sign in to comment.