Skip to content

Commit

Permalink
Merge pull request #465 from openego/feature/#456-feature-set-default…
Browse files Browse the repository at this point in the history
…-timeindex-in-edisgoset_time_series_active_power_predefined

Feature/#456 feature set default timeindex in edisgoset time series active power predefined
  • Loading branch information
khelfen authored Feb 19, 2025
2 parents f5ed235 + fa7ff54 commit 57aa264
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions tests/test_edisgo.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ def test_set_time_series_active_power_predefined(self, caplog):
# check warning
self.edisgo.set_time_series_active_power_predefined()
assert (
"When setting time series using predefined profiles it is better"
"The EDisGo.TimeSeries.timeindex is empty. By default, this function"
in caplog.text
)

Expand Down Expand Up @@ -934,9 +934,9 @@ def test_aggregate_components(self):

# ##### test without any aggregation

self.edisgo.topology._loads_df.at[
"Load_residential_LVGrid_1_4", "bus"
] = "Bus_BranchTee_LVGrid_1_10"
self.edisgo.topology._loads_df.at["Load_residential_LVGrid_1_4", "bus"] = (
"Bus_BranchTee_LVGrid_1_10"
)

# save original values
number_gens_before = len(self.edisgo.topology.generators_df)
Expand Down Expand Up @@ -1054,9 +1054,9 @@ def test_aggregate_components(self):
)
# manipulate grid so that more than one load of the same sector is
# connected at the same bus
self.edisgo.topology._loads_df.at[
"Load_residential_LVGrid_1_4", "bus"
] = "Bus_BranchTee_LVGrid_1_10"
self.edisgo.topology._loads_df.at["Load_residential_LVGrid_1_4", "bus"] = (
"Bus_BranchTee_LVGrid_1_10"
)

# save original values (only loads, as generators did not change)
loads_p_set_before = self.edisgo.topology.loads_df.p_set.sum()
Expand Down Expand Up @@ -1136,9 +1136,9 @@ def test_aggregate_components(self):

# manipulate grid so that two generators of different types are
# connected at the same bus
self.edisgo.topology._generators_df.at[
"GeneratorFluctuating_13", "type"
] = "misc"
self.edisgo.topology._generators_df.at["GeneratorFluctuating_13", "type"] = (
"misc"
)

# save original values (values of loads were changed in previous aggregation)
loads_p_set_before = self.edisgo.topology.loads_df.p_set.sum()
Expand Down

0 comments on commit 57aa264

Please sign in to comment.