Skip to content

Commit

Permalink
Fixed generation complete message printing before actual completion
Browse files Browse the repository at this point in the history
  • Loading branch information
Clarence Castillo committed Jan 8, 2014
1 parent 4a83a17 commit e2d010e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dose/simulation_calls.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ def simulation_core(sim_functions, sim_parameters, Populations, World):
print '\nSimulation preparation complete...'
while generation_count < max:
generation_count = generation_count + 1
print 'Generation ' + str(generation_count) + ' complete...\r',
sim_functions.ecoregulate(World)
eco_cell_iterator(World, sim_parameters,
sim_functions.update_ecology)
Expand All @@ -98,6 +97,7 @@ def simulation_core(sim_functions, sim_parameters, Populations, World):
(con, cur) = db_report(con, cur, sim_functions,
sim_parameters["starting_time"],
Populations, World, generation_count)
print 'Generation ' + str(generation_count) + ' complete...\r',
print '\nClosing simulation results...'
for pop_name in Populations: close_results(sim_parameters, pop_name)
if sim_parameters.has_key("database_file") and \
Expand Down

0 comments on commit e2d010e

Please sign in to comment.