Skip to content

Commit

Permalink
changed tqdm_notebook to tqdm with positions in test_genalg
Browse files Browse the repository at this point in the history
  • Loading branch information
Susan Redmond authored and Susan Redmond committed Jan 3, 2019
1 parent 0bf1a34 commit 5984b13
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_genalg.py
Expand Up @@ -177,11 +177,11 @@ def testProgressBar2(self):

#t = tqdm(total=num_generations,leave=False)
# Loop over all generations:
for current_gen in tqdm_notebook(range(num_generations),desc='Generation'):
for current_gen in tqdm(range(num_generations),desc='Generation',position=0):
progress.progress_monitor(current_gen,population)
# t.update(current_gen)
time.sleep(0.05)
for truss in tqdm_notebook(GA.population,desc='truss'):
for truss in tqdm(GA.population,desc='truss',position=1):
#truss.fos = np.random.random()
truss.fitness_score = truss.fitness_score + 5.0
# t.close()
Expand Down

0 comments on commit 5984b13

Please sign in to comment.