Commit 3d4c982e by Eric Coissac

Switch to the new progress bar

parent 19c7a916
...@@ -9,7 +9,7 @@ from orgasm.graph._graphmultiedge cimport * ...@@ -9,7 +9,7 @@ from orgasm.graph._graphmultiedge cimport *
from functools import reduce from functools import reduce
from orgasm.utils._progress cimport progressBar from orgasm.apps.progress cimport ProgressBar
from orgasm.utils.dna cimport reverseComplement from orgasm.utils.dna cimport reverseComplement
import math import math
...@@ -264,7 +264,9 @@ cdef class CompactAssembling(DiGraphMultiEdge): ...@@ -264,7 +264,9 @@ cdef class CompactAssembling(DiGraphMultiEdge):
if verbose: if verbose:
print("Compacting graph :",file=sys.stderr) print("Compacting graph :",file=sys.stderr)
else: else:
progressBar(1,lgraph,True,b"Compacting graph") progress = ProgressBar(lgraph,
head="Compacting graph",
seconde=0.1)
minweight=1000000. minweight=1000000.
...@@ -285,7 +287,7 @@ cdef class CompactAssembling(DiGraphMultiEdge): ...@@ -285,7 +287,7 @@ cdef class CompactAssembling(DiGraphMultiEdge):
weight), weight),
file=sys.stderr) file=sys.stderr)
else: else:
progressBar(lcontig,lgraph,False,b"Compacting graph") progress(lcontig)
self.setStemid() self.setStemid()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment