Skip to content

Commit

Permalink
remove superseded comments about energy supplies
Browse files Browse the repository at this point in the history
  • Loading branch information
shieldo committed Mar 25, 2024
1 parent db87561 commit b827ced
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
3 changes: 0 additions & 3 deletions src/core/heating_systems/heat_network.rs
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,6 @@ impl HeatNetwork {
let energy_output_provided =
max_of_2(0., min_of_2(energy_output_required, energy_output_max));

// TODO demand energy from energy supply
self.energy_supply_connections[service_name]
.demand_energy(energy_output_provided, timestep_idx)
.unwrap();
Expand Down Expand Up @@ -510,8 +509,6 @@ mod tests {
heat_network_for_water_direct: Arc<Mutex<HeatNetwork>>,
two_len_simulation_time: SimulationTime,
) -> HeatNetworkServiceWaterDirect {
// TODO register energy supply

let cold_water_temps = [1.0, 1.2];
let cold_feed = ColdWaterSource::new(cold_water_temps.into(), &two_len_simulation_time, 1.);
let return_temp = 60.;
Expand Down
3 changes: 1 addition & 2 deletions src/corpus.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2706,8 +2706,7 @@ fn heat_source_from_input(
ref test_data,
energy_supply,
control,
heater_position,
thermostat_position,
..
} => {
let energy_supply =
energy_supplies.ensured_get_for_type(energy_supply, simulation_time.total_steps());
Expand Down

0 comments on commit b827ced

Please sign in to comment.