Skip to content

Commit

Permalink
Remove deprecated comments
Browse files Browse the repository at this point in the history
  • Loading branch information
andreArtelt committed Jun 5, 2024
1 parent c923134 commit 975e55a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions epyt_flow/simulation/scenario_simulator.py
Original file line number Diff line number Diff line change
Expand Up @@ -1745,8 +1745,7 @@ def run_simulation_as_generator(self, hyd_export: str = None, verbose: bool = Fa
# Fetch data
pressure_data = self.epanet_api.getNodePressure().reshape(1, -1)
flow_data = self.epanet_api.getLinkFlows().reshape(1, -1)
demand_data = self.epanet_api.getNodeActualDemand().reshape(1,
-1) # TODO: Does not go back after emitter coefficient is changed back to zero
demand_data = self.epanet_api.getNodeActualDemand().reshape(1, -1)
quality_node_data = self.epanet_api.getNodeActualQuality().reshape(1, -1)
quality_link_data = self.epanet_api.getLinkActualQuality().reshape(1, -1)
pumps_state_data = self.epanet_api.getLinkPumpState().reshape(1, -1)
Expand Down Expand Up @@ -1928,8 +1927,7 @@ def set_general_parameters(self, demand_model: dict = None, simulation_duration:
if not isinstance(simulation_duration, int) or simulation_duration <= 0:
raise ValueError("'simulation_duration' must be a positive integer specifying " +
"the number of seconds to simulate")
self.epanet_api.setTimeSimulationDuration(simulation_duration) # TODO: Changing the simulation
# duration from .inp file seems to break EPANET-MSX
self.epanet_api.setTimeSimulationDuration(simulation_duration)

if hydraulic_time_step is not None:
if not isinstance(hydraulic_time_step, int) or hydraulic_time_step <= 0:
Expand Down

0 comments on commit 975e55a

Please sign in to comment.