Skip to content

Commit 18a86f3

Browse files
committed
Merge error fix.
1 parent d2812bd commit 18a86f3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/omotes_simulator_core/entities/assets/controller/controller_network.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ def set_supply(self, time: datetime.datetime, factor: float = 1, priority: int =
149149
continue
150150
# Discharging (e.g., heat from component/system to the network) is negative.
151151
producers[source.id] = {
152-
PROPERTY_HEAT_DEMAND: source.get_max_power(time) * factor,
152+
PROPERTY_HEAT_DEMAND: -1 * source.get_max_power(time) * factor,
153153
PROPERTY_TEMPERATURE_OUT: source.temperature_out,
154154
PROPERTY_TEMPERATURE_IN: source.temperature_in,
155155
PROPERTY_SET_PRESSURE: False,

0 commit comments

Comments
 (0)