Skip to content

Commit

Permalink
remove unused
Browse files Browse the repository at this point in the history
  • Loading branch information
tanghaibao committed Apr 30, 2024
1 parent 512b26d commit b970e9a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jcvi/assembly/allmaps.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ def callback(tour, gen, i=0):
return tour

i = 0
_, best_fitness = None, None
best_fitness = None
while True: # Multiple EC rounds due to orientation fixes
logger.debug("Start EC round %d", i)
scaffolds_oo = dict(tour)
Expand All @@ -210,7 +210,7 @@ def callback(tour, gen, i=0):
logger.debug("No fitness improvement: %s. Exit EC.", best_fitness)
break
tour = self.fix_orientation(tour)
best_tour, best_fitness = tour, fitness
best_fitness = fitness
print_tour(
fwtour, self.object, tag, "GA{0}-FIXORI".format(i), tour, recode=True
)
Expand Down

0 comments on commit b970e9a

Please sign in to comment.