Skip to content

Commit

Permalink
remove some left-in print statements from energy supply module
Browse files Browse the repository at this point in the history
  • Loading branch information
shieldo committed Mar 22, 2024
1 parent 289514b commit 2a62f85
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/core/energy_supply/energy_supply.rs
Original file line number Diff line number Diff line change
Expand Up @@ -194,11 +194,9 @@ impl EnergySupply {
end_user_name: &str,
) -> Result<EnergySupplyConnection, anyhow::Error> {
let mut supply = energy_supply.lock();
println!("{:?}", supply.demand_by_end_user);
if supply.demand_by_end_user.contains_key(end_user_name.into()) {
bail!("The end user name '{end_user_name}' was already used.");
}
println!("end_user_name: {end_user_name}");
let timesteps = supply.simulation_timesteps;
supply
.demand_by_end_user
Expand Down Expand Up @@ -593,7 +591,6 @@ mod test {
simulation_time: SimulationTimeIterator,
) {
let (energy_connection_1, energy_connection_2, energy_supply) = energy_supply_connections;
println!("{:?}", energy_supply.lock().results_by_end_user());
for simtime in simulation_time {
let _ = energy_connection_1
.demand_energy((simtime.index as f64 + 1.0) * 50.0, simtime.index);
Expand Down

0 comments on commit 2a62f85

Please sign in to comment.