Skip to content

Commit

Permalink
Do not compare simple model solutions in one test
Browse files Browse the repository at this point in the history
  • Loading branch information
brynpickering committed Jan 15, 2024
1 parent 7280600 commit b5d8abc
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions tests/test_core_preprocess.py
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,6 @@ def test_loading_from_df(self, data_source_dir, simple_supply):
demand_elec = pd.read_csv(
data_source_dir / "demand_elec.csv", index_col=0, header=0
)
calliope.set_log_verbosity("info")
override = AttrDict.from_yaml_string(
"""
data_sources:
Expand All @@ -540,12 +539,7 @@ def test_loading_from_df(self, data_source_dir, simple_supply):
"simple_supply,two_hours,investment_costs",
data_source_dfs={"demand_elec": demand_elec},
)
simple_supply_from_df.build()
simple_supply_from_df.solve()

assert simple_supply_from_df.inputs.sink_use_equals.equals(
simple_supply.inputs.sink_use_equals
)
simple_supply_cost = simple_supply.results.cost.sum().item()
simple_supply_from_df_cost = simple_supply_from_df.results.cost.sum().item()
assert simple_supply_cost == simple_supply_from_df_cost

0 comments on commit b5d8abc

Please sign in to comment.