Skip to content

Commit

Permalink
fix docstring; remove debugging output
Browse files Browse the repository at this point in the history
  • Loading branch information
artgoldberg committed Dec 26, 2020
1 parent 35678a1 commit 44778df
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions wc_sim/simulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,8 @@ def run(self, max_time, results_dir=None, progress_bar=True, checkpoint_period=N
verbose (:obj:`bool`, optional): whether to print success output
object_memory_change_interval (:obj:`int`, optional): event interval between memory profiles
of the simulation; default of 0 indicates no profile
options (:obj:`dict`, optional): options for submodels, passed to `MultialgorithmSimulation`
options (:obj:`dict`, optional): options for submodels, keyed by submodel class name;
are passed to :obj:`MultialgorithmSimulation`
Returns:
:obj:`SimulationReturnValue`: containing 1) an :obj:`int` holding the number of simulation
Expand Down Expand Up @@ -163,8 +164,6 @@ def run(self, max_time, results_dir=None, progress_bar=True, checkpoint_period=N
multialgorithm_simulation = MultialgorithmSimulation(self.model, self.wc_sim_config, options)
self.simulator, self.dynamic_model = multialgorithm_simulation.build_simulation()
self.simulator.initialize()
print('*** Model initialized ***')
print(self.dynamic_model.species_population)

# set stop_condition after the dynamic model is created
self.de_sim_config.stop_condition = self.dynamic_model.get_stop_condition()
Expand All @@ -178,8 +177,10 @@ def run(self, max_time, results_dir=None, progress_bar=True, checkpoint_period=N
except SimulatorError as e: # pragma: no cover
raise MultialgorithmError(f'Simulation terminated with simulator error:\n{e}')
except BaseException as e: # pragma: no cover
'''
print('*** BaseException ***')
print(self.dynamic_model.species_population)
'''
raise MultialgorithmError(f'Simulation terminated with error:\n{e}')

if verbose:
Expand Down

0 comments on commit 44778df

Please sign in to comment.