Skip to content
Browse files

fix docstrings; add debugging

  • Loading branch information
artgoldberg committed Aug 18, 2019
1 parent d4a397c commit ff34983f990b51fc6d42eadce322ed38161e065f
Showing with 2 additions and 5 deletions.
  1. +0 −3 de_sim/config/
  2. +1 −1 de_sim/
  3. +1 −1 de_sim/
@@ -14,7 +14,6 @@
import wc_utils.config.core
import wc_utils.debug_logs.config

from pprint import pprint

def get_config(extra=None):
""" Get configuration
@@ -51,13 +50,11 @@ def get_debug_logs_config(extra=None):
print('de_sim.config.core.get_debug_logs_config paths:')
for attr in "default schema user".split():
print(attr + ': ', end="")
pprint(getattr(paths, attr))
return wc_utils.config.core.ConfigManager(paths).get_config(extra=extra)

@@ -36,7 +36,7 @@ class SimulationEngine(object):
log or checkpoint the entire state of a simulation; all objects in `shared_state` must
implement `SharedStateInterface`
debug_log (:obj:`bool`, optional): whether to output a debug log
debug_logs (:obj:` TODO
debug_logs (:obj:`wc_utils.debug_logs.core.DebugLogsManager`): the debug logs
stop_condition (:obj:`function`, optional): if provided, a function that takes one argument:
`time`; a simulation terminates if `stop_condition` returns `True`
event_counts (:obj:`Counter`): a counter of event types
@@ -269,7 +269,7 @@ class SimulationObject(object):
time (:obj:`float`): this simulation object's current simulation time
num_events (:obj:`int`): number of events processed
simulator (:obj:`int`): the `SimulationEngine` that uses this `SimulationObject`
debug_logs (:obj:` TODO
debug_logs (:obj:`wc_utils.debug_logs.core.DebugLogsManager`): the debug logs
def __init__(self, name):
""" Initialize a SimulationObject.

0 comments on commit ff34983

Please sign in to comment.
You can’t perform that action at this time.