Source code for wntr.sim.results
"""Simulation results."""
import datetime
import enum
[docs]
class ResultsStatus(enum.IntEnum):
converged = 1
error = 0
[docs]
class SimulationResults(object):
"""
Water network simulation results class.
"""
[docs]
def __init__(self):
# Simulation time series
self.timestamp = str(datetime.datetime.now())
self.network_name = None
self.link = None
self.node = None